dart format

This commit is contained in:
Fabian Freund
2026-03-23 11:14:20 +01:00
parent b9669635d9
commit 182bfe3d72
11 changed files with 163 additions and 154 deletions
@@ -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;
@@ -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)]);
}