![](https://thana.in.th/wp-content/uploads/2021/06/Screen-Shot-2564-06-21-at-17.15.29-1024x656.png)
import 'package:flutter/material.dart';
class HomePage extends StatefulWidget {
const HomePage({Key? key}) : super(key: key);
@override
_HomePageState createState() => _HomePageState();
}
class _HomePageState extends State<HomePage> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('HomePage'),
)
);
}
}
![](https://thana.in.th/wp-content/uploads/2021/06/Screen-Shot-2564-06-21-at-17.23.25-1017x1024.png)
initialRoute: '/',
routes: {
'/' : (context) => HomePage()
},
![](https://thana.in.th/wp-content/uploads/2021/06/Screen-Shot-2564-06-21-at-17.25.24-494x1024.png)
(Visited 138 times, 1 visits today)