页面结构初始化

This commit is contained in:
guozhigq
2023-04-18 11:02:19 +08:00
parent aae24126ce
commit aaccfe4542
17 changed files with 150 additions and 101 deletions

View File

View File

@ -0,0 +1,4 @@
library home;
export './controller.dart';
export './view.dart';

19
lib/pages/home/view.dart Normal file
View File

@ -0,0 +1,19 @@
import 'package:flutter/material.dart';
class HomePage extends StatefulWidget {
const HomePage({super.key});
@override
State<HomePage> createState() => _HomePageState();
}
class _HomePageState extends State<HomePage> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('home'),
),
);
}
}

View File

4
lib/pages/hot/index.dart Normal file
View File

@ -0,0 +1,4 @@
library hot;
export './controller.dart';
export './view.dart';

19
lib/pages/hot/view.dart Normal file
View File

@ -0,0 +1,19 @@
import "package:flutter/material.dart";
class HotPage extends StatefulWidget {
const HotPage({super.key});
@override
State<HotPage> createState() => _HotPageState();
}
class _HotPageState extends State<HotPage> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('hot'),
),
);
}
}

View File

View File

@ -0,0 +1,4 @@
library main;
export './controller.dart';
export './view.dart';

19
lib/pages/main/view.dart Normal file
View File

@ -0,0 +1,19 @@
import 'package:flutter/material.dart';
class MainApp extends StatefulWidget {
const MainApp({super.key});
@override
State<MainApp> createState() => _MainAppState();
}
class _MainAppState extends State<MainApp> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('main'),
),
);
}
}

View File

View File

@ -0,0 +1,4 @@
library mine;
export './controller.dart';
export './view.dart';

19
lib/pages/mine/view.dart Normal file
View File

@ -0,0 +1,19 @@
import 'package:flutter/material.dart';
class MinePage extends StatefulWidget {
const MinePage({super.key});
@override
State<MinePage> createState() => _MinePageState();
}
class _MinePageState extends State<MinePage> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('mine'),
),
);
}
}

View File

View File

@ -0,0 +1,4 @@
library video_detail;
export './controller.dart';
export './view.dart';

View File

@ -0,0 +1,19 @@
import 'package:flutter/material.dart';
class VideoDetailPage extends StatefulWidget {
const VideoDetailPage({super.key});
@override
State<VideoDetailPage> createState() => _VideoDetailPageState();
}
class _VideoDetailPageState extends State<VideoDetailPage> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('videoDetail'),
),
);
}
}