30 lines
736 B
Dart
30 lines
736 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter_bloc/flutter_bloc.dart';
|
|
import 'package:flutter_project/BloC/contenedores_event.dart';
|
|
import '../homePage/my_home_page.dart';
|
|
|
|
void main() {
|
|
runApp(
|
|
BlocProvider(
|
|
create: (context) => MyBloc(),
|
|
child: const MyApp(),
|
|
),
|
|
);
|
|
}
|
|
|
|
class MyApp extends StatelessWidget {
|
|
const MyApp({Key? key}) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return MaterialApp(
|
|
title: 'Flutter Demo',
|
|
theme: ThemeData(
|
|
colorScheme: ColorScheme.fromSeed(seedColor: Color.fromARGB(255, 0, 67, 168)),
|
|
useMaterial3: true,
|
|
),
|
|
home: const MyHomePage(title: 'COMUNIDAD DE REGANTES DE CIVÁN'),
|
|
);
|
|
}
|
|
}
|