Dwitio

main.dart

Apr 1st, 2022 (edited)
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 0.63 KB | None | 0 0
  1. import 'package:flutter/material.dart';
  2. import 'package:flutter_bloc/flutter_bloc.dart';
  3. import 'package:belajar_flutter/bloc_state_management_flutter_bloc.dart';
  4. import 'package:belajar_flutter/color_bloc_flutter_bloc.dart';
  5.  
  6. void main() => runApp(
  7.   const MyApp()
  8. );
  9.  
  10. class MyApp extends StatelessWidget {
  11.   const MyApp({key}) : super(key: key);
  12.  
  13.   @override
  14.   Widget build(BuildContext context) {
  15.     return MaterialApp(
  16.       debugShowCheckedModeBanner: false,
  17.       home: BlocProvider(
  18.           create: (context) => ColorBlocFlutterBloc(),
  19.           child: BlockStateManagementFlutterBloc()
  20.       ),
  21.     );
  22.   }
  23. }
  24.  
Add Comment
Please, Sign In to add comment