deps(mobile): flutter 3.16 (#6677)

* dep(mobile): update flutter and deps

* chore: dart analyzer

* chore: update flutter workflow version

* chore: dart format

* fix: gallery_viewer PopScope

---------

Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
This commit is contained in:
shenlong 2024-01-27 16:14:32 +00:00 committed by GitHub
parent 0522058fdf
commit 27488ceb67
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
116 changed files with 627 additions and 624 deletions

View file

@ -95,15 +95,15 @@ class StoreValue {
T? _extract<T>(StoreKey<T> key) {
switch (key.type) {
case int:
case const (int):
return intValue as T?;
case bool:
case const (bool):
return intValue == null ? null : (intValue! == 1) as T;
case DateTime:
case const (DateTime):
return intValue == null
? null
: DateTime.fromMicrosecondsSinceEpoch(intValue!) as T;
case String:
case const (String):
return strValue as T?;
default:
if (key.fromDb != null) {
@ -117,16 +117,16 @@ class StoreValue {
int? i;
String? s;
switch (key.type) {
case int:
case const (int):
i = value as int?;
break;
case bool:
case const (bool):
i = value == null ? null : (value == true ? 1 : 0);
break;
case DateTime:
case const (DateTime):
i = value == null ? null : (value as DateTime).microsecondsSinceEpoch;
break;
case String:
case const (String):
s = value as String?;
break;
default: