Skip to content
This repository was archived by the owner on Apr 3, 2025. It is now read-only.

Commit 3a5e19b

Browse files
committed
fix(sheets): set default overlay theme for sheets, remove bottom radius clipping
1 parent 83e8374 commit 3a5e19b

12 files changed

+135
-124
lines changed

ios/Podfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
platform :ios, '11.0'
2-
$FirebaseSDKVersion = '9.4.0'
2+
$FirebaseSDKVersion = '9.5.0'
33

44
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
55
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

ios/Podfile.lock

+44-44
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
PODS:
2-
- cloud_firestore (3.4.6):
3-
- Firebase/Firestore (= 9.4.0)
2+
- cloud_firestore (3.4.8):
3+
- Firebase/Firestore (= 9.5.0)
44
- firebase_core
55
- Flutter
66
- DKImagePickerController/Core (4.3.4):
@@ -37,43 +37,43 @@ PODS:
3737
- file_picker (0.0.1):
3838
- DKImagePickerController/PhotoGallery
3939
- Flutter
40-
- Firebase/Auth (9.4.0):
40+
- Firebase/Auth (9.5.0):
4141
- Firebase/CoreOnly
42-
- FirebaseAuth (~> 9.4.0)
43-
- Firebase/CoreOnly (9.4.0):
44-
- FirebaseCore (= 9.4.0)
45-
- Firebase/Firestore (9.4.0):
42+
- FirebaseAuth (~> 9.5.0)
43+
- Firebase/CoreOnly (9.5.0):
44+
- FirebaseCore (= 9.5.0)
45+
- Firebase/Firestore (9.5.0):
4646
- Firebase/CoreOnly
47-
- FirebaseFirestore (~> 9.4.0)
48-
- Firebase/Messaging (9.4.0):
47+
- FirebaseFirestore (~> 9.5.0)
48+
- Firebase/Messaging (9.5.0):
4949
- Firebase/CoreOnly
50-
- FirebaseMessaging (~> 9.4.0)
51-
- Firebase/Storage (9.4.0):
50+
- FirebaseMessaging (~> 9.5.0)
51+
- Firebase/Storage (9.5.0):
5252
- Firebase/CoreOnly
53-
- FirebaseStorage (~> 9.4.0)
54-
- firebase_auth (3.7.0):
55-
- Firebase/Auth (= 9.4.0)
53+
- FirebaseStorage (~> 9.5.0)
54+
- firebase_auth (3.9.0):
55+
- Firebase/Auth (= 9.5.0)
5656
- firebase_core
5757
- Flutter
58-
- firebase_core (1.21.1):
59-
- Firebase/CoreOnly (= 9.4.0)
58+
- firebase_core (1.22.0):
59+
- Firebase/CoreOnly (= 9.5.0)
6060
- Flutter
61-
- firebase_messaging (12.0.3):
62-
- Firebase/Messaging (= 9.4.0)
61+
- firebase_messaging (13.0.2):
62+
- Firebase/Messaging (= 9.5.0)
6363
- firebase_core
6464
- Flutter
65-
- firebase_storage (10.3.7):
66-
- Firebase/Storage (= 9.4.0)
65+
- firebase_storage (10.3.8):
66+
- Firebase/Storage (= 9.5.0)
6767
- firebase_core
6868
- Flutter
6969
- FirebaseAppCheckInterop (9.6.0)
70-
- FirebaseAuth (9.4.0):
70+
- FirebaseAuth (9.5.0):
7171
- FirebaseCore (~> 9.0)
7272
- GoogleUtilities/AppDelegateSwizzler (~> 7.7)
7373
- GoogleUtilities/Environment (~> 7.7)
7474
- GTMSessionFetcher/Core (< 3.0, >= 1.7)
7575
- FirebaseAuthInterop (9.6.0)
76-
- FirebaseCore (9.4.0):
76+
- FirebaseCore (9.5.0):
7777
- FirebaseCoreDiagnostics (~> 9.0)
7878
- FirebaseCoreInternal (~> 9.0)
7979
- GoogleUtilities/Environment (~> 7.7)
@@ -87,20 +87,20 @@ PODS:
8787
- FirebaseCore (~> 9.0)
8888
- FirebaseCoreInternal (9.6.0):
8989
- "GoogleUtilities/NSData+zlib (~> 7.7)"
90-
- FirebaseFirestore (9.4.0):
91-
- FirebaseFirestore/AutodetectLeveldb (= 9.4.0)
92-
- FirebaseFirestore/AutodetectLeveldb (9.4.0):
90+
- FirebaseFirestore (9.5.0):
91+
- FirebaseFirestore/AutodetectLeveldb (= 9.5.0)
92+
- FirebaseFirestore/AutodetectLeveldb (9.5.0):
9393
- FirebaseFirestore/Base
9494
- FirebaseFirestore/WithLeveldb
95-
- FirebaseFirestore/Base (9.4.0)
96-
- FirebaseFirestore/WithLeveldb (9.4.0):
95+
- FirebaseFirestore/Base (9.5.0)
96+
- FirebaseFirestore/WithLeveldb (9.5.0):
9797
- FirebaseFirestore/Base
9898
- FirebaseInstallations (9.6.0):
9999
- FirebaseCore (~> 9.0)
100100
- GoogleUtilities/Environment (~> 7.7)
101101
- GoogleUtilities/UserDefaults (~> 7.7)
102102
- PromisesObjC (~> 2.1)
103-
- FirebaseMessaging (9.4.0):
103+
- FirebaseMessaging (9.5.0):
104104
- FirebaseCore (~> 9.0)
105105
- FirebaseInstallations (~> 9.0)
106106
- GoogleDataTransport (< 10.0.0, >= 9.1.4)
@@ -109,7 +109,7 @@ PODS:
109109
- GoogleUtilities/Reachability (~> 7.7)
110110
- GoogleUtilities/UserDefaults (~> 7.7)
111111
- nanopb (< 2.30910.0, >= 2.30908.0)
112-
- FirebaseStorage (9.4.0):
112+
- FirebaseStorage (9.5.0):
113113
- FirebaseAppCheckInterop (~> 9.0)
114114
- FirebaseAuthInterop (~> 9.0)
115115
- FirebaseCore (~> 9.0)
@@ -189,7 +189,7 @@ DEPENDENCIES:
189189
- firebase_core (from `.symlinks/plugins/firebase_core/ios`)
190190
- firebase_messaging (from `.symlinks/plugins/firebase_messaging/ios`)
191191
- firebase_storage (from `.symlinks/plugins/firebase_storage/ios`)
192-
- FirebaseFirestore (from `https://github.com/invertase/firestore-ios-sdk-frameworks.git`, tag `9.4.0`)
192+
- FirebaseFirestore (from `https://github.com/invertase/firestore-ios-sdk-frameworks.git`, tag `9.5.0`)
193193
- Flutter (from `Flutter`)
194194
- flutter_native_splash (from `.symlinks/plugins/flutter_native_splash/ios`)
195195
- in_app_purchase_storekit (from `.symlinks/plugins/in_app_purchase_storekit/ios`)
@@ -243,7 +243,7 @@ EXTERNAL SOURCES:
243243
:path: ".symlinks/plugins/firebase_storage/ios"
244244
FirebaseFirestore:
245245
:git: https://github.com/invertase/firestore-ios-sdk-frameworks.git
246-
:tag: 9.4.0
246+
:tag: 9.5.0
247247
Flutter:
248248
:path: Flutter
249249
flutter_native_splash:
@@ -270,29 +270,29 @@ EXTERNAL SOURCES:
270270
CHECKOUT OPTIONS:
271271
FirebaseFirestore:
272272
:git: https://github.com/invertase/firestore-ios-sdk-frameworks.git
273-
:tag: 9.4.0
273+
:tag: 9.5.0
274274

275275
SPEC CHECKSUMS:
276-
cloud_firestore: 6448075c9bac372319e7f025fdfa6f1d382644d7
276+
cloud_firestore: 7e123d5034b068e9a1fb32b2ad98a814c7f3e45d
277277
DKImagePickerController: b512c28220a2b8ac7419f21c491fc8534b7601ac
278278
DKPhotoGallery: fdfad5125a9fdda9cc57df834d49df790dbb4179
279279
file_picker: 817ab1d8cd2da9d2da412a417162deee3500fc95
280-
Firebase: 7703fc4022824b6d6db1bf7bea58d13b8e17ec46
281-
firebase_auth: 74cfbf7be1e3e7fdaac9e7f117cefd89155251a9
282-
firebase_core: 8e500850dd138c269d197c8dfca3ae886fa3b6f2
283-
firebase_messaging: b65dacd4de1b469893dea0d754b1947f45ef4f7a
284-
firebase_storage: 846832b7f2d22238678dc9abc513f2151f102462
280+
Firebase: 800f16f07af493d98d017446a315c27af0552f41
281+
firebase_auth: c070c7e5b66037cddb73a68ca4bf4728b063680b
282+
firebase_core: 31872a49ffe0bf6f834e7044c7334e433536735a
283+
firebase_messaging: 0950bacaf29e1f50e3f0502aa1c29a3a5814925e
284+
firebase_storage: e81dc988f10c31c4ec1b1c79719ad679795b531d
285285
FirebaseAppCheckInterop: d5ecda0c09f8069406643d6e0fa12c09d1b736e3
286-
FirebaseAuth: ae5d4402e1516497357d909162b091b3ca2a2e9c
286+
FirebaseAuth: 741918f1fa62ed23246a509279f91d42d79a713f
287287
FirebaseAuthInterop: b6cf02117f13a8400c8c8b4421e12c6e850bcaf3
288-
FirebaseCore: 9a2b10270a854731c4d4d8a97d0aa8380ec3458d
288+
FirebaseCore: 25c0400b670fd1e2f2104349cd3b5dcce8d9418f
289289
FirebaseCoreDiagnostics: 99a495094b10a57eeb3ae8efa1665700ad0bdaa6
290290
FirebaseCoreExtension: e83465d1236b166d1d445bbf0e82b65acb30b73b
291291
FirebaseCoreInternal: bca76517fe1ed381e989f5e7d8abb0da8d85bed3
292-
FirebaseFirestore: 11ab4a20524e5e7a36c65f0467a45ad403532665
292+
FirebaseFirestore: cbb150095370d64f1f021e3a7eecd2b543356ae3
293293
FirebaseInstallations: 0a115432c4e223c5ab20b0dbbe4cbefa793a0e8e
294-
FirebaseMessaging: 4e220eddd356181469ba2ec5f7d5fafbc2312841
295-
FirebaseStorage: 160ba975dd3452d9c59a3bf5ea9bf70ff96bd3c2
294+
FirebaseMessaging: 732623518591384f61c287e3d8f65294beb7ffb3
295+
FirebaseStorage: a806d9f9eededf6fb1d906e79221b83ada1dbb4f
296296
FirebaseStorageInternal: 81d8a597324ccd06c41a43c5700bc1185a2fc328
297297
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
298298
flutter_native_splash: 52501b97d1c0a5f898d687f1646226c1f93c56ef
@@ -315,6 +315,6 @@ SPEC CHECKSUMS:
315315
SwiftyGif: 6c3eafd0ce693cad58bb63d2b2fb9bacb8552780
316316
url_launcher_ios: 839c58cdb4279282219f5e248c3321761ff3c4de
317317

318-
PODFILE CHECKSUM: b770541d6ad51c600743bc3608f688c979d24796
318+
PODFILE CHECKSUM: 4998bdd481d1c989b0fc39ba5d95ea3bed976109
319319

320320
COCOAPODS: 1.11.3

lib/widgets/ui.dart

+1-3
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,6 @@ class LunaUI {
113113
}
114114

115115
static ShapeBorder get shapeBorder {
116-
return shouldUseBorder
117-
? LunaShapeBorder.roundedWithBorder()
118-
: LunaShapeBorder.rounded();
116+
return LunaShapeBorder(useBorder: shouldUseBorder);
119117
}
120118
}

lib/widgets/ui/bottom_modal_sheet.dart

+5-1
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,14 @@ class LunaBottomModalSheet<T> {
1313
expand: false,
1414
backgroundColor:
1515
LunaTheme.isAMOLEDTheme ? Colors.black : LunaColours.secondary,
16-
shape: LunaUI.shapeBorder,
16+
shape: LunaShapeBorder(
17+
topOnly: true,
18+
useBorder: LunaUI.shouldUseBorder,
19+
),
1720
builder: builder ?? this.builder as Widget Function(BuildContext),
1821
closeProgressThreshold: 0.90,
1922
elevation: LunaUI.ELEVATION,
23+
overlayStyle: LunaTheme().overlayStyle,
2024
);
2125
}
2226

lib/widgets/ui/button.dart

+2-3
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,8 @@ class LunaButton extends Card {
5252
: Theme.of(LunaState.context)
5353
.canvasColor
5454
.withOpacity(LunaUI.OPACITY_DIMMED),
55-
shape: backgroundColor != null
56-
? LunaShapeBorder.rounded()
57-
: LunaUI.shapeBorder,
55+
shape:
56+
backgroundColor != null ? LunaShapeBorder() : LunaUI.shapeBorder,
5857
elevation: LunaUI.ELEVATION,
5958
clipBehavior: Clip.antiAlias,
6059
);

lib/widgets/ui/list_tile/list_tile.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class LunaListTile extends Card {
7373
),
7474
margin: margin,
7575
elevation: LunaUI.ELEVATION,
76-
shape: drawBorder ? LunaUI.shapeBorder : LunaShapeBorder.rounded(),
76+
shape: drawBorder ? LunaUI.shapeBorder : LunaShapeBorder(),
7777
color: color ?? Theme.of(context).primaryColor,
7878
);
7979
}

lib/widgets/ui/shape.dart

+12-6
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,22 @@ import 'package:flutter/material.dart';
22
import 'package:lunasea/core.dart';
33

44
class LunaShapeBorder extends RoundedRectangleBorder {
5-
LunaShapeBorder._internal({
5+
LunaShapeBorder({
66
bool useBorder = false,
7+
bool topOnly = false,
78
}) : super(
8-
borderRadius: BorderRadius.circular(LunaUI.BORDER_RADIUS),
9+
borderRadius: BorderRadius.only(
10+
topLeft: const Radius.circular(LunaUI.BORDER_RADIUS),
11+
topRight: const Radius.circular(LunaUI.BORDER_RADIUS),
12+
bottomLeft: topOnly
13+
? Radius.zero
14+
: const Radius.circular(LunaUI.BORDER_RADIUS),
15+
bottomRight: topOnly
16+
? Radius.zero
17+
: const Radius.circular(LunaUI.BORDER_RADIUS),
18+
),
919
side: useBorder
1020
? const BorderSide(color: LunaColours.white10)
1121
: BorderSide.none,
1222
);
13-
14-
factory LunaShapeBorder.rounded() => LunaShapeBorder._internal();
15-
factory LunaShapeBorder.roundedWithBorder() =>
16-
LunaShapeBorder._internal(useBorder: true);
1723
}

lib/widgets/ui/theme.dart

+16-12
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,7 @@ class LunaTheme {
66
/// Initialize the theme by setting the system navigation and system colours.
77
void initialize() {
88
//Set system UI overlay style (navbar, statusbar)
9-
SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle(
10-
systemNavigationBarColor: LunaSeaDatabase.THEME_AMOLED.read()
11-
? Colors.black
12-
: LunaColours.secondary,
13-
systemNavigationBarDividerColor: LunaSeaDatabase.THEME_AMOLED.read()
14-
? Colors.black
15-
: LunaColours.secondary,
16-
statusBarColor: Colors.transparent,
17-
systemNavigationBarIconBrightness: Brightness.light,
18-
statusBarIconBrightness: Brightness.light,
19-
statusBarBrightness: Brightness.dark,
20-
));
9+
SystemChrome.setSystemUIOverlayStyle(overlayStyle);
2110
}
2211

2312
/// Returns the active [ThemeData] by checking the theme database value.
@@ -97,6 +86,21 @@ class LunaTheme {
9786
);
9887
}
9988

89+
SystemUiOverlayStyle get overlayStyle {
90+
return SystemUiOverlayStyle(
91+
systemNavigationBarColor: LunaSeaDatabase.THEME_AMOLED.read()
92+
? Colors.black
93+
: LunaColours.secondary,
94+
systemNavigationBarDividerColor: LunaSeaDatabase.THEME_AMOLED.read()
95+
? Colors.black
96+
: LunaColours.secondary,
97+
statusBarColor: Colors.transparent,
98+
systemNavigationBarIconBrightness: Brightness.light,
99+
statusBarIconBrightness: Brightness.light,
100+
statusBarBrightness: Brightness.dark,
101+
);
102+
}
103+
100104
TextTheme get _sharedTextTheme {
101105
const textStyle = TextStyle(color: Colors.white);
102106
return const TextTheme(

macos/Podfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
platform :osx, '10.14'
2-
$FirebaseSDKVersion = '9.4.0'
2+
$FirebaseSDKVersion = '9.5.0'
33

44
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
55
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

0 commit comments

Comments
 (0)