Flutter upgrade
This commit is contained in:
parent
70e1d417bc
commit
c28ff52a18
|
|
@ -3,6 +3,7 @@ import 'dart:async';
|
|||
|
||||
// Flutter imports:
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/gestures.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
// Package imports:
|
||||
|
|
@ -262,6 +263,7 @@ class InvoiceNinjaAppState extends State<InvoiceNinjaApp> {
|
|||
child: WebSocketRefresh(
|
||||
companyId: state.company?.id,
|
||||
child: MaterialApp(
|
||||
scrollBehavior: MyCustomScrollBehavior(),
|
||||
navigatorKey: navigatorKey,
|
||||
supportedLocales: kLanguages
|
||||
.map(
|
||||
|
|
@ -552,3 +554,11 @@ class InvoiceNinjaAppState extends State<InvoiceNinjaApp> {
|
|||
);
|
||||
}
|
||||
}
|
||||
|
||||
class MyCustomScrollBehavior extends MaterialScrollBehavior {
|
||||
@override
|
||||
Set<PointerDeviceKind> get dragDevices => {
|
||||
PointerDeviceKind.touch,
|
||||
PointerDeviceKind.mouse,
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -327,7 +327,6 @@ class _EntityDropdownState extends State<EntityDropdown> {
|
|||
alignment: Alignment.centerRight,
|
||||
children: <Widget>[
|
||||
InkWell(
|
||||
//key: ValueKey('__stack_${widget.labelText}__'),
|
||||
onTap: () => _showOptions(),
|
||||
child: IgnorePointer(
|
||||
child: TextFormField(
|
||||
|
|
|
|||
Loading…
Reference in New Issue