dart format
This commit is contained in:
+2
-4
@@ -159,13 +159,11 @@ class _BrowserViewState extends ConsumerState<BrowserView>
|
||||
data: (androidInfo) {
|
||||
if (androidInfo == null) {
|
||||
// Not Android, always show GeckoView based on route
|
||||
return topRoute is GoRoute &&
|
||||
topRoute.name == BrowserRoute.name;
|
||||
return topRoute is GoRoute && topRoute.name == BrowserRoute.name;
|
||||
}
|
||||
// Android: only apply visibility fix on Android 12 and lower (API <= 31)
|
||||
if (androidInfo.sdkInt <= 31) {
|
||||
return topRoute is GoRoute &&
|
||||
topRoute.name == BrowserRoute.name;
|
||||
return topRoute is GoRoute && topRoute.name == BrowserRoute.name;
|
||||
}
|
||||
// Android 13+: always show GeckoView
|
||||
return true;
|
||||
|
||||
+1
-3
@@ -72,9 +72,7 @@ class FontSizeBottomSheet extends ConsumerWidget {
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(bottom: 16),
|
||||
child: Card(
|
||||
color: Theme.of(context)
|
||||
.colorScheme
|
||||
.surfaceContainerHighest,
|
||||
color: Theme.of(context).colorScheme.surfaceContainerHighest,
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(12),
|
||||
child: Row(
|
||||
|
||||
@@ -101,11 +101,16 @@ class TabDao extends DatabaseAccessor<TabDatabase> with $TabDaoMixin {
|
||||
..orderBy([(t) => OrderingTerm.desc(t.timestamp)]);
|
||||
}
|
||||
|
||||
Selectable<TabData> getContainerTabsFifo(String? containerId, {int limit = 25}) {
|
||||
Selectable<TabData> getContainerTabsFifo(
|
||||
String? containerId, {
|
||||
int limit = 25,
|
||||
}) {
|
||||
return select(db.tab)
|
||||
..where((t) => containerId != null
|
||||
? t.containerId.equals(containerId)
|
||||
: t.containerId.isNull())
|
||||
..where(
|
||||
(t) => containerId != null
|
||||
? t.containerId.equals(containerId)
|
||||
: t.containerId.isNull(),
|
||||
)
|
||||
..limit(limit)
|
||||
..orderBy([(t) => OrderingTerm.desc(t.timestamp)]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user