together_mobile/lib/screens/more/more_screen.dart

87 lines
2.7 KiB
Dart
Raw Normal View History

2023-06-21 17:44:28 +08:00
import 'package:flutter/material.dart';
import 'package:go_router/go_router.dart';
import 'package:together_mobile/common/constants.dart';
class MoreScreen extends StatefulWidget {
const MoreScreen({super.key});
@override
State<MoreScreen> createState() => _MoreScreenState();
}
class _MoreScreenState extends State<MoreScreen> {
@override
Widget build(BuildContext context) {
return Scaffold(
floatingActionButton: FloatingActionButton(
onPressed: () {},
child: const Icon(Icons.psychology),
),
body: SafeArea(
child: Column(
children: [
InkWell(
onTap: () => context.push('/more/profile'),
child: Padding(
padding: const EdgeInsets.all(
10,
),
child: Row(
children: [
SizedBox(
width: 90,
height: 90,
child: Image.asset('assets/images/user.png'),
),
const SizedBox(
width: 15,
),
const Expanded(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'My name',
overflow: TextOverflow.ellipsis,
style: TextStyle(fontSize: 20),
),
Text(
'账号: 1234532sad',
overflow: TextOverflow.ellipsis,
style: TextStyle(
color: kUnActivatedColor,
fontSize: 14,
),
),
],
),
),
const SizedBox(
width: 15,
),
const Icon(Icons.keyboard_arrow_right),
],
),
),
),
const SizedBox(
height: 10,
),
ListTile(
onTap: () {},
contentPadding: const EdgeInsets.all(10),
visualDensity: VisualDensity.compact,
leading: const Icon(Icons.settings),
title: const Text(
'设置',
style: TextStyle(fontSize: 18),
),
trailing: const Icon(Icons.keyboard_arrow_right),
),
],
),
),
);
}
}