// lib/pages/about.dart
import 'package:flutter/material.dart';
import 'package:todo/pages/route_url.dart';
class AboutPage extends StatelessWidget {
const AboutPage({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('关于'),
),
body: Center(
child: Column(
children: [
Expanded(
child: Container(
child: Center(
child: FractionallySizedBox(
child: Image.asset('assets/images/mark.png'),
widthFactor: 0.3,
heightFactor: 0.3,
),
),
),
),
Expanded(
child: Container(
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
Padding(
padding: EdgeInsets.only(left: 24, right: 24, bottom: 12),
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
Center(
child: Text(
'Funny Flutter Todo',
style: TextStyle(fontSize: 25),
),
),
Center(
child: Text('版本 1.0.0'),
),
],
),
),
Padding(
padding: EdgeInsets.only(
left: 24,
right: 24,
top: 12,
bottom: 12,
),
child: TextButton(
onPressed: () {
Navigator.of(context)
.pushReplacementNamed(LOGIN_PAGE_URL);
},
child: Text(
'退出登录',
style: TextStyle(color: Colors.white),
),
style: TextButton.styleFrom(
backgroundColor: Colors.red,
disabledBackgroundColor: Colors.red,
),
),
),
],
),
),
),
],
),
),
);
}
}