sign in with pocketbase working

This commit is contained in:
davmar
2026-09-09 19:59:38 +02:00
parent ae464ff304
commit c6d1fdb19e
27 changed files with 1267 additions and 312 deletions
+39
View File
@@ -0,0 +1,39 @@
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:myapp/utils/app_theme.dart';
void main() {
testWidgets('themes build and render SegmentedButton', (tester) async {
await tester.pumpWidget(
MaterialApp(
theme: AppTheme.light(),
darkTheme: AppTheme.dark(),
themeMode: ThemeMode.dark,
home: Scaffold(
body: Column(
children: [
SegmentedButton<int>(
segments: const [
ButtonSegment(value: 0, label: Text('A')),
ButtonSegment(value: 1, label: Text('B')),
],
selected: const {0},
onSelectionChanged: (_) {},
),
NavigationBar(
destinations: const [
NavigationDestination(icon: Icon(Icons.home), label: 'Home'),
NavigationDestination(icon: Icon(Icons.star), label: 'Star'),
],
selectedIndex: 1,
onDestinationSelected: (_) {},
),
],
),
),
),
);
await tester.pumpAndSettle();
expect(find.text('A'), findsOneWidget);
});
}