Pre-release bug fixes (#888)

* Fix Exchange picker UI issue * Fixate local_auth_android version * Remove shared pref android package override since it's fixed

Omar Hatem committed Apr 19, 2023 at 16:38 UTC 27961f2f25a77ef16dad2bf528f08118c7044023
4 files changed +69 -52
lib/src/widgets/check_box_picker.dart
+60 -51
@@ -33,62 +33,71 @@ class CheckBoxPickerState extends State<CheckBoxPicker> {
33 @override
34 Widget build(BuildContext context) {
35 return AlertBackground(
36 - child: Center(
37 - child: Column(
38 - mainAxisSize: MainAxisSize.min,
39 - children: <Widget>[
40 - if (widget.title.isNotEmpty)
41 - Container(
42 - padding: EdgeInsets.symmetric(horizontal: 24),
43 - child: Text(
44 - widget.title,
45 - textAlign: TextAlign.center,
46 - style: TextStyle(
47 - fontSize: 18,
48 - fontFamily: 'Lato',
49 - fontWeight: FontWeight.bold,
50 - decoration: TextDecoration.none,
51 - color: Colors.white,
52 - ),
53 - ),
54 - ),
55 - Padding(
56 - padding: EdgeInsets.only(left: 24, right: 24, top: 24),
57 - child: ClipRRect(
58 - borderRadius: BorderRadius.all(Radius.circular(30)),
59 - child: Container(
60 - color: Theme.of(context).accentTextTheme.headline6!.color!,
61 - child: ConstrainedBox(
62 - constraints: BoxConstraints(
63 - maxHeight: MediaQuery.of(context).size.height * 0.65,
64 - maxWidth: ResponsiveLayoutUtil.kPopupWidth,
36 + child: Column(
37 + children: [
38 + Expanded(
39 + child: Stack(
40 + alignment: Alignment.center,
41 + children: [
42 + Column(
43 + mainAxisSize: MainAxisSize.min,
44 + children: <Widget>[
45 + if (widget.title.isNotEmpty)
46 + Container(
47 + padding: EdgeInsets.symmetric(horizontal: 24),
48 + child: Text(
49 + widget.title,
50 + textAlign: TextAlign.center,
51 + style: TextStyle(
52 + fontSize: 18,
53 + fontFamily: 'Lato',
54 + fontWeight: FontWeight.bold,
55 + decoration: TextDecoration.none,
56 + color: Colors.white,
57 + ),
58 ),
66 - child: Column(
67 - mainAxisSize: MainAxisSize.min,
68 - children: [
69 - Flexible(
70 - child: Stack(
71 - alignment: Alignment.center,
72 - children: <Widget>[
73 - items.length > 3
74 - ? Scrollbar(
75 - controller: controller,
76 - child: itemsList(),
77 - )
78 - : itemsList(),
79 - ],
80 - ),
59 + ),
60 + Padding(
61 + padding: EdgeInsets.only(left: 24, right: 24, top: 24),
62 + child: ClipRRect(
63 + borderRadius: BorderRadius.all(Radius.circular(30)),
64 + child: Container(
65 + color: Theme.of(context).accentTextTheme.headline6!.color!,
66 + child: ConstrainedBox(
67 + constraints: BoxConstraints(
68 + maxHeight: MediaQuery.of(context).size.height * 0.65,
69 + maxWidth: ResponsiveLayoutUtil.kPopupWidth,
70 ),
82 - ],
71 + child: Column(
72 + mainAxisSize: MainAxisSize.min,
73 + children: [
74 + Flexible(
75 + child: Stack(
76 + alignment: Alignment.center,
77 + children: <Widget>[
78 + items.length > 3
79 + ? Scrollbar(
80 + controller: controller,
81 + child: itemsList(),
82 + )
83 + : itemsList(),
84 + ],
85 + ),
86 + ),
87 + ],
88 + ),
89 + ),
90 ),
91 ),
92 ),
86 - ),
93 + ],
94 ),
88 - SizedBox(height: ResponsiveLayoutUtil.kPopupSpaceHeight),
89 - AlertCloseButton(),
90 - ],
91 - ),
95 + SizedBox(height: ResponsiveLayoutUtil.kPopupSpaceHeight),
96 + AlertCloseButton(),
97 + ],
98 + ),
99 + ),
100 + ],
101 ),
102 );
103 }
@@ -146,7 +155,7 @@ class CheckBoxPickerState extends State<CheckBoxPicker> {
155 if (value == null) {
156 return;
157 }
149 -
158 +
159 item.value = value;
160 widget.onChanged(index, value);
161 setState(() {});
macos/Flutter/GeneratedPluginRegistrant.swift
+2
@@ -10,6 +10,7 @@ import cw_monero
10 import device_info_plus
11 import devicelocale
12 import flutter_secure_storage_macos
13 +import in_app_review
14 import package_info
15 import path_provider_foundation
16 import platform_device_id
@@ -25,6 +26,7 @@ func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
26 DeviceInfoPlusMacosPlugin.register(with: registry.registrar(forPlugin: "DeviceInfoPlusMacosPlugin"))
27 DevicelocalePlugin.register(with: registry.registrar(forPlugin: "DevicelocalePlugin"))
28 FlutterSecureStorageMacosPlugin.register(with: registry.registrar(forPlugin: "FlutterSecureStorageMacosPlugin"))
29 + InAppReviewPlugin.register(with: registry.registrar(forPlugin: "InAppReviewPlugin"))
30 FLTPackageInfoPlugin.register(with: registry.registrar(forPlugin: "FLTPackageInfoPlugin"))
31 PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
32 PlatformDeviceIdMacosPlugin.register(with: registry.registrar(forPlugin: "PlatformDeviceIdMacosPlugin"))
macos/Podfile.lock
+6
@@ -26,6 +26,8 @@ PODS:
26 - flutter_secure_storage_macos (3.3.1):
27 - FlutterMacOS
28 - FlutterMacOS (1.0.0)
29 + - in_app_review (0.2.0):
30 + - FlutterMacOS
31 - package_info (0.0.1):
32 - FlutterMacOS
33 - path_provider_foundation (0.0.1):
@@ -53,6 +55,7 @@ DEPENDENCIES:
55 - devicelocale (from `Flutter/ephemeral/.symlinks/plugins/devicelocale/macos`)
56 - flutter_secure_storage_macos (from `Flutter/ephemeral/.symlinks/plugins/flutter_secure_storage_macos/macos`)
57 - FlutterMacOS (from `Flutter/ephemeral`)
58 + - in_app_review (from `Flutter/ephemeral/.symlinks/plugins/in_app_review/macos`)
59 - package_info (from `Flutter/ephemeral/.symlinks/plugins/package_info/macos`)
60 - path_provider_foundation (from `Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/macos`)
61 - platform_device_id (from `Flutter/ephemeral/.symlinks/plugins/platform_device_id/macos`)
@@ -79,6 +82,8 @@ EXTERNAL SOURCES:
82 :path: Flutter/ephemeral/.symlinks/plugins/flutter_secure_storage_macos/macos
83 FlutterMacOS:
84 :path: Flutter/ephemeral
85 + in_app_review:
86 + :path: Flutter/ephemeral/.symlinks/plugins/in_app_review/macos
87 package_info:
88 :path: Flutter/ephemeral/.symlinks/plugins/package_info/macos
89 path_provider_foundation:
@@ -103,6 +108,7 @@ SPEC CHECKSUMS:
108 devicelocale: 9f0f36ac651cabae2c33f32dcff4f32b61c38225
109 flutter_secure_storage_macos: 6ceee8fbc7f484553ad17f79361b556259df89aa
110 FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24
111 + in_app_review: a850789fad746e89bce03d4aeee8078b45a53fd0
112 package_info: 6eba2fd8d3371dda2d85c8db6fe97488f24b74b2
113 path_provider_foundation: c68054786f1b4f3343858c1e1d0caaded73f0be9
114 platform_device_id: 3e414428f45df149bbbfb623e2c0ca27c545b763
pubspec_base.yaml
+1 -1
@@ -9,7 +9,6 @@ dependencies:
9 qr_flutter: ^4.0.0
10 uuid: 3.0.6
11 shared_preferences: ^2.0.15
12 - shared_preferences_android: 2.1.0
12 flutter_secure_storage:
13 git:
14 url: https://github.com/cake-tech/flutter_secure_storage.git
@@ -33,6 +32,7 @@ dependencies:
32 hive: ^2.2.3
33 hive_flutter: ^1.1.0
34 local_auth: ^2.1.0
35 + local_auth_android: 1.0.21
36 package_info: ^2.0.0
37 #package_info_plus: ^1.4.2
38 devicelocale: