Created
June 2, 2020 21:10
-
-
Save r3dm1ke/bc34c769c3c13d9b078a391b0b5042e2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:flutter_bloc/flutter_bloc.dart'; | |
import 'counter.dart'; | |
void main() => runApp(CounterApp()); | |
class CounterApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: 'BLoC Demo', | |
home: BlocProvider<CounterBloc>( | |
create: (context) => CounterBloc(), child: CounterPage())); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment