34 lines
832 B
Dart
34 lines
832 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter_animate/flutter_animate.dart';
|
|
import 'package:pcasttv/globals.dart';
|
|
import 'package:pcasttv/pages/main_page.dart';
|
|
import 'package:pcasttv/stores/login_store.dart';
|
|
import 'package:velocity_x/velocity_x.dart';
|
|
|
|
void main() {
|
|
runApp(
|
|
VxState(
|
|
store: LoginStore(),
|
|
child: const MyApp(),
|
|
),
|
|
);
|
|
}
|
|
|
|
class MyApp extends StatelessWidget {
|
|
const MyApp({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return MaterialApp(
|
|
title: 'PCastTV',
|
|
debugShowCheckedModeBanner: false,
|
|
scaffoldMessengerKey: snackbarKey,
|
|
navigatorKey: navigatorKey,
|
|
theme: ThemeData(
|
|
useMaterial3: true,
|
|
),
|
|
home: const MainPage(),
|
|
).animate().fadeIn(duration: const Duration(milliseconds: 400));
|
|
}
|
|
}
|