Skip to content

Instantly share code, notes, and snippets.

@viveky259259
Created September 30, 2019 13:36
Show Gist options
  • Save viveky259259/4bfc8e6dec875e156cf7421bd081c61d to your computer and use it in GitHub Desktop.
Save viveky259259/4bfc8e6dec875e156cf7421bd081c61d to your computer and use it in GitHub Desktop.
Note's main file
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:flutter_for_people/bloc/notes/note.bloc.dart';
import 'notes/note.ui.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: BlocProvider<NoteBloc>(
builder: (context) => NoteBloc(), child: NotesUi()),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment