mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-23 09:16:54 +00:00
26 lines
726 B
Dart
26 lines
726 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter_bloc/flutter_bloc.dart';
|
|
import 'package:selfprivacy/logic/cubit/services/services_cubit.dart';
|
|
import 'package:selfprivacy/logic/cubit/users/users_cubit.dart';
|
|
|
|
class BlocAndProviderConfig extends StatelessWidget {
|
|
const BlocAndProviderConfig({Key key, this.child}) : super(key: key);
|
|
|
|
final Widget child;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return MultiProvider(
|
|
providers: [
|
|
BlocProvider<ServicesCubit>(
|
|
create: (BuildContext context) => ServicesCubit(),
|
|
),
|
|
BlocProvider<UsersCubit>(
|
|
create: (BuildContext context) => UsersCubit(),
|
|
),
|
|
],
|
|
child: child,
|
|
);
|
|
}
|
|
}
|