gergle/lib/main.dart

40 lines
1.0 KiB
Dart
Raw Normal View History

2024-12-15 00:52:28 +01:00
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'player_ui/main.dart';
2024-12-15 00:52:28 +01:00
import 'state/connection_state_bloc.dart';
import 'state/player_state_bloc.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
final PlayerStateBloc playerStateBloc = PlayerStateBloc();
final ConnectionStateBloc connectionStateBloc =
ConnectionStateBloc(playerStateBloc);
return MaterialApp(
title: 'Gergle',
theme: ThemeData(
useMaterial3: true,
// primaryColor: const Color(0x002244FF),
colorScheme: ColorScheme.fromSeed(
seedColor: Colors.lightBlue,
brightness: Brightness.dark,
),
),
2024-12-15 00:52:28 +01:00
home: MultiBlocProvider(
providers: [
BlocProvider(create: (_) => connectionStateBloc),
BlocProvider(create: (_) => playerStateBloc),
],
child: const PlayerUi(),
2024-12-15 00:52:28 +01:00
),
);
}
}