Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import 'package:flutter/material.dart';
- import 'package:flutter_bloc/flutter_bloc.dart';
- import 'package:belajar_flutter/bloc_state_management_flutter_bloc.dart';
- import 'package:belajar_flutter/color_bloc_flutter_bloc.dart';
- void main() => runApp(
- const MyApp()
- );
- class MyApp extends StatelessWidget {
- const MyApp({key}) : super(key: key);
- @override
- Widget build(BuildContext context) {
- return MaterialApp(
- debugShowCheckedModeBanner: false,
- home: BlocProvider(
- create: (context) => ColorBlocFlutterBloc(),
- child: BlockStateManagementFlutterBloc()
- ),
- );
- }
- }
Add Comment
Please, Sign In to add comment