moepoi.dev/lib/main.dart

35 lines
941 B
Dart
Raw Normal View History

2022-06-05 05:18:03 +02:00
import 'package:flutter_web_plugins/flutter_web_plugins.dart';
import 'package:flutter/material.dart';
import 'package:moepoi_site/screens/home.dart';
import 'package:moepoi_site/screens/projects.dart';
import 'package:moepoi_site/screens/resume.dart';
import 'package:moepoi_site/screens/skills.dart';
void main() {
setUrlStrategy(PathUrlStrategy());
runApp(const Moepoi());
}
class Moepoi extends StatefulWidget {
const Moepoi({Key? key}) : super(key: key);
@override
State<Moepoi> createState() => _MoepoiState();
}
class _MoepoiState extends State<Moepoi> {
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
initialRoute: '',
routes: {
'': (context) => const Home(),
'/projects': (context) => const Projects(),
'/skills': (context) => const Skills(),
'/resume': (context) => const Resume(),
},
);
}
}