Skip to content

Instantly share code, notes, and snippets.

@FantasyCheese
FantasyCheese / main.dart
Created September 18, 2020 11:57
Simplest MultiProvider Example
import 'dart:async';
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
void main() {
runApp(MultiProvider(
providers: [
ChangeNotifierProvider(create: (_) => Counter()),
ChangeNotifierProvider(create: (_) => Clock())