87 lines
2.7 KiB
Dart
87 lines
2.7 KiB
Dart
|
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),
|
||
|
),
|
||
|
],
|
||
|
),
|
||
|
),
|
||
|
);
|
||
|
}
|
||
|
}
|