Skip to content

Instantly share code, notes, and snippets.

@r3dm1ke
Created June 2, 2020 21:10
Show Gist options
  • Save r3dm1ke/bc34c769c3c13d9b078a391b0b5042e2 to your computer and use it in GitHub Desktop.
Save r3dm1ke/bc34c769c3c13d9b078a391b0b5042e2 to your computer and use it in GitHub Desktop.
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