Skip to content

Instantly share code, notes, and snippets.

@suragch

suragch/main.dart

Last active Mar 31, 2021
Embed
What would you like to do?
Provider Architecture example
import 'package:flutter/material.dart';
import 'counter_screen.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: CounterScreen(),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment