bloc_pattern 1.5.0
bloc_pattern: ^1.5.0 copied to clipboard
Apenas um package com bases para implantar o Bloc no seu Código.
import 'package:bloc_pattern/bloc_pattern.dart';
import 'package:flutter/material.dart';
import 'increment/increment-controller.dart';
import 'increment/increment-widget.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return BlocProvider<IncrementController>(
child: MaterialApp(
home: IncrementWidget(),
),
bloc: IncrementController(),
);
}
}