Skip to content

Commit

Permalink
tests(start): add basic launch app test
Browse files Browse the repository at this point in the history
  • Loading branch information
PiotrFLEURY committed Mar 9, 2024
1 parent 8f7ac12 commit cf5229d
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 495 deletions.
9 changes: 8 additions & 1 deletion lib/app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,18 @@ import 'package:flipub/views/library_view.dart';
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';

class Flipub extends ConsumerWidget {
class Flipub extends StatelessWidget {
const Flipub({
super.key,
});

@override
Widget build(BuildContext context) {
return ProviderScope(child: _FlipubContent());
}
}

class _FlipubContent extends ConsumerWidget {
@override
Widget build(BuildContext context, WidgetRef ref) {
final themeMode = ref.watch(themeNotifierProvider);
Expand Down
9 changes: 1 addition & 8 deletions lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
import 'package:flutter/material.dart';
import 'package:flipub/app.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';

Future<void> main() async {
runApp(
const ProviderScope(
child: Flipub(),
),
);
}
Future<void> main() async => runApp(const Flipub());
Loading

0 comments on commit cf5229d

Please sign in to comment.