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