import 'package:flutter/material.dart'; class TemplatesScreen extends StatefulWidget { static const String PATH = '/Templates'; TemplatesScreen({Key key}) : super(key: key); @override _TemplatesScreenState createState() => _TemplatesScreenState(); } class _TemplatesScreenState extends State { // TemplatesBloc bloc; @override void dispose() { super.dispose(); // bloc.dispose(); } @override Widget build(BuildContext context) { _init(); return Scaffold( body: Center( child: Text("Templates") ), ); } void _init(){ // if(null == bloc){ // bloc = TemplatesBloc(AppProvider.getApplication(context)); // } } }