25 lines
673 B
Dart
25 lines
673 B
Dart
import 'package:fluent_ui/fluent_ui.dart';
|
|
|
|
class HomePage extends StatelessWidget {
|
|
const HomePage({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return ScaffoldPage.withPadding(
|
|
header: const PageHeader(
|
|
title: Text('首页', style: TextStyle(color: Colors.white)),
|
|
),
|
|
content: Center(
|
|
child: Column(
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: [
|
|
Icon(FluentIcons.home, size: 64, color: Colors.white),
|
|
const SizedBox(height: 20),
|
|
Text('首页', style: TextStyle(fontSize: 24, color: Colors.white)),
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|