26 lines
658 B
Dart
26 lines
658 B
Dart
import 'package:{{project_name.snakeCase()}}/widget_tree.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter_bloc/flutter_bloc.dart';
|
|
{{#enable_auth}}import 'package:wyatt_authentication_bloc/wyatt_authentication_bloc.dart';{{/enable_auth}}
|
|
|
|
class App extends StatelessWidget {
|
|
const App({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
// Data providers
|
|
// ...
|
|
|
|
return MultiRepositoryProvider(
|
|
providers: [
|
|
// Repositories
|
|
],
|
|
child: MultiBlocProvider(
|
|
providers: [
|
|
// Toplevel Blocs and Cubits
|
|
],
|
|
child: const WidgetTree(),
|
|
),
|
|
);
|
|
}
|
|
} |