2024-03-18 13:23:58 +08:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:get/get.dart';
|
2024-03-19 08:59:08 +08:00
|
|
|
import 'package:sk_base_mobile/screens/mine/settings/mine_settings.dart';
|
2024-03-18 13:23:58 +08:00
|
|
|
// import 'package:sk_base_mobile/screens/mine/mine_about.dart';
|
|
|
|
// import 'package:sk_base_mobile/screens/mine/mine_block.dart';
|
|
|
|
// import 'package:sk_base_mobile/screens/mine/mine_mytickets.dart';
|
|
|
|
// import 'package:sk_base_mobile/screens/mine/mine_settings.dart';
|
|
|
|
import 'package:sk_base_mobile/store/auth.store.dart';
|
|
|
|
import 'package:sk_base_mobile/util/screen_adaper_util.dart';
|
|
|
|
import 'package:sk_base_mobile/widgets/my_avatar.dart';
|
|
|
|
import 'package:sk_base_mobile/app_theme.dart';
|
|
|
|
|
|
|
|
class MinePage extends StatefulWidget {
|
2024-03-31 17:13:29 +08:00
|
|
|
const MinePage({super.key});
|
2024-03-18 13:23:58 +08:00
|
|
|
|
|
|
|
@override
|
|
|
|
State<MinePage> createState() => _MinePageState();
|
|
|
|
}
|
|
|
|
|
|
|
|
class _MinePageState extends State<MinePage>
|
|
|
|
with SingleTickerProviderStateMixin {
|
|
|
|
@override
|
|
|
|
void initState() {
|
|
|
|
super.initState();
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
2024-03-27 11:06:01 +08:00
|
|
|
return Container(
|
|
|
|
color: AppTheme.nearlyWhite,
|
|
|
|
child: _buildBody(),
|
|
|
|
);
|
2024-03-18 13:23:58 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
Widget _buildBody() {
|
2024-03-19 08:59:08 +08:00
|
|
|
return Column(children: [
|
2024-03-27 11:06:01 +08:00
|
|
|
Container(
|
2024-04-07 17:32:46 +08:00
|
|
|
height: ScreenAdaper.height(350),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
gradient: LinearGradient(
|
|
|
|
colors: [AppTheme.primaryColorLight, AppTheme.primaryColor])
|
|
|
|
// image: DecorationImage(
|
|
|
|
// fit: BoxFit.cover,
|
|
|
|
// image: AssetImage('assets/images/yeyazhijia_bg.jpg'))
|
|
|
|
),
|
2024-03-27 11:06:01 +08:00
|
|
|
// decoration: BoxDecoration(
|
|
|
|
// gradient: LinearGradient(
|
|
|
|
// colors: [AppTheme.primaryColorLight, AppTheme.primaryColor])),
|
|
|
|
child: Padding(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenAdaper.width(20),
|
|
|
|
vertical: ScreenAdaper.height(20)),
|
|
|
|
child: Column(children: [
|
|
|
|
SizedBox(
|
2024-04-07 17:32:46 +08:00
|
|
|
height: ScreenAdaper.height(100),
|
2024-03-27 11:06:01 +08:00
|
|
|
),
|
|
|
|
Row(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
MyAvatarWidget(),
|
|
|
|
SizedBox(
|
|
|
|
height: ScreenAdaper.height(10),
|
|
|
|
),
|
|
|
|
Obx(
|
|
|
|
() => Stack(
|
|
|
|
alignment: Alignment.center,
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
AuthStore.to.userInfo.value.nickname ?? '',
|
|
|
|
style: TextStyle(
|
|
|
|
letterSpacing: ScreenAdaper.width(5),
|
2024-04-07 17:32:46 +08:00
|
|
|
fontSize: ScreenAdaper.height(35),
|
2024-03-27 11:06:01 +08:00
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
foreground: Paint()
|
|
|
|
..style = PaintingStyle.stroke
|
|
|
|
..strokeWidth = 2
|
|
|
|
..color = Colors.black),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
AuthStore.to.userInfo.value.nickname ?? '',
|
|
|
|
style: TextStyle(
|
|
|
|
letterSpacing: ScreenAdaper.width(5),
|
|
|
|
color: Colors.white,
|
2024-04-07 17:32:46 +08:00
|
|
|
fontSize: ScreenAdaper.height(35),
|
2024-03-27 11:06:01 +08:00
|
|
|
fontWeight: FontWeight.bold),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
)
|
|
|
|
],
|
|
|
|
)
|
|
|
|
]),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SizedBox(
|
|
|
|
height: ScreenAdaper.height(50),
|
|
|
|
),
|
2024-03-31 17:13:29 +08:00
|
|
|
const Expanded(child: MineSettingsPage())
|
2024-03-19 08:59:08 +08:00
|
|
|
// Expanded(
|
|
|
|
// child: DefaultTabController(
|
|
|
|
// length: 4,
|
|
|
|
// initialIndex: _controller.selectedTabIndex.value,
|
|
|
|
// child: Scaffold(
|
|
|
|
// backgroundColor: AppTheme.white,
|
|
|
|
// appBar: AppBar(
|
|
|
|
// backgroundColor: AppTheme.white,
|
|
|
|
// elevation: 0,
|
|
|
|
// automaticallyImplyLeading: false,
|
|
|
|
// flexibleSpace: _buildTabBar(),
|
|
|
|
// ),
|
|
|
|
// body: _buildTabView())))
|
2024-03-18 13:23:58 +08:00
|
|
|
]);
|
|
|
|
}
|
|
|
|
}
|