27 lines
688 B
Dart
27 lines
688 B
Dart
/// Wrapper BLoC pour la page des adhésions
|
|
library adhesions_page_wrapper;
|
|
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter_bloc/flutter_bloc.dart';
|
|
import 'package:get_it/get_it.dart';
|
|
import '../../bloc/adhesions_bloc.dart';
|
|
import 'adhesions_page.dart';
|
|
|
|
final _getIt = GetIt.instance;
|
|
|
|
class AdhesionsPageWrapper extends StatelessWidget {
|
|
const AdhesionsPageWrapper({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return BlocProvider<AdhesionsBloc>(
|
|
create: (context) {
|
|
final bloc = _getIt<AdhesionsBloc>();
|
|
bloc.add(const LoadAdhesions());
|
|
return bloc;
|
|
},
|
|
child: const AdhesionsPage(),
|
|
);
|
|
}
|
|
}
|