This repository has been archived on 2023-11-13. You can view files and clone it, but cannot push or open issues or pull requests.
imagini/web_native/lib/screens/example1/examplescreen1.dart
2021-01-06 16:12:32 -05:00

41 lines
821 B
Dart

import 'package:flutter/material.dart';
import 'package:imagini/screens/example1/components/body.dart';
import 'package:imagini/screens/example1/example-bloc.dart';
import 'package:imagini/bloc/bloc-prov.dart';
class ExScreen1 extends StatefulWidget {
@override
_ExScreen1State createState() => _ExScreen1State();
}
class _ExScreen1State extends State<ExScreen1> {
ExampleBloc exampleBloc;
@override
void initState() {
super.initState();
exampleBloc = ExampleBloc();
}
@override
void dispose() {
exampleBloc.dispose();
super.dispose();
}
@override
Widget build(BuildContext context) {
return BlocProvider(
bloc: exampleBloc,
child: Scaffold(
appBar: AppBar(
title: Text("First Screen"),
),
body: Body(),
),
);
}
}