| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- import 'package:flutter/material.dart';
- import 'package:my_feature_module/my_feature_module.dart';
- void main() {
- runApp(const MyApp());
- }
- class MyApp extends StatelessWidget {
- const MyApp({super.key});
- @override
- Widget build(BuildContext context) {
- return MaterialApp(
- title: '舌面诊',
- theme: ThemeData(
- colorScheme: ColorScheme.fromSeed(seedColor: Colors.green),
- useMaterial3: true,
- ),
- home: const HomePage(),
- );
- }
- }
- class HomePage extends StatelessWidget {
- const HomePage({super.key});
- @override
- Widget build(BuildContext context) {
- return Scaffold(
- appBar: AppBar(
- title: const Text('舌面诊'),
- backgroundColor: Theme.of(context).colorScheme.inversePrimary,
- ),
- body: Center(
- child: Column(
- mainAxisAlignment: MainAxisAlignment.center,
- children: [
- const Text(
- '舌面诊',
- style: TextStyle(fontSize: 24, fontWeight: FontWeight.bold),
- ),
- const SizedBox(height: 32),
- ElevatedButton(
- onPressed: () {
- Navigator.of(context).push(
- MaterialPageRoute(
- builder: (context) => const SmzPage(),
- ),
- );
- },
- style: ElevatedButton.styleFrom(
- padding: const EdgeInsets.symmetric(
- horizontal: 32,
- vertical: 16,
- ),
- backgroundColor: Colors.green,
- foregroundColor: Colors.white,
- ),
- child: const Text(
- '进入舌面诊',
- style: TextStyle(fontSize: 18),
- ),
- ),
- ],
- ),
- ),
- );
- }
- }
|