尺寸修改
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:ln_jq_app/storage_service.dart';
|
||||
import 'controller.dart';
|
||||
|
||||
// 假设您的 Controller 在这里,如果还没有,可以先创建一个空类
|
||||
@@ -56,7 +57,7 @@ class MinePage extends GetView<MineController> {
|
||||
child: Row(
|
||||
children: [
|
||||
const CircleAvatar(
|
||||
radius: 30,
|
||||
radius: 25,
|
||||
backgroundColor: Colors.blue,
|
||||
child: Icon(Icons.person, color: Colors.white, size: 40),
|
||||
),
|
||||
@@ -65,18 +66,18 @@ class MinePage extends GetView<MineController> {
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
const Text(
|
||||
'王小龙',
|
||||
style: TextStyle(fontSize: 20, fontWeight: FontWeight.bold),
|
||||
Text(
|
||||
"${StorageService.to.name}",
|
||||
style: TextStyle(fontSize: 14, fontWeight: FontWeight.bold),
|
||||
),
|
||||
const SizedBox(height: 4),
|
||||
const Text(
|
||||
'15888332828',
|
||||
style: TextStyle(color: Colors.grey, fontSize: 14),
|
||||
Text(
|
||||
"${StorageService.to.phone}",
|
||||
style: TextStyle(color: Colors.grey, fontSize: 11),
|
||||
),
|
||||
const SizedBox(height: 4),
|
||||
const Text(
|
||||
'未绑定车辆',
|
||||
Text(
|
||||
StorageService.to.hasVehicleInfo ? "已绑定车辆" : '未绑定车辆',
|
||||
style: TextStyle(color: Colors.orange, fontSize: 12),
|
||||
),
|
||||
],
|
||||
@@ -93,10 +94,17 @@ class MinePage extends GetView<MineController> {
|
||||
children: [
|
||||
Icon(Icons.shield_outlined, color: Colors.blue, size: 14),
|
||||
SizedBox(width: 4),
|
||||
Text('已认证', style: TextStyle(color: Colors.blue, fontSize: 10, fontWeight: FontWeight.bold)),
|
||||
Text(
|
||||
'已认证',
|
||||
style: TextStyle(
|
||||
color: Colors.blue,
|
||||
fontSize: 10,
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
)
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
@@ -138,7 +146,10 @@ class MinePage extends GetView<MineController> {
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
const Text('驾驶得分', style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold)),
|
||||
const Text(
|
||||
'驾驶得分',
|
||||
style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold),
|
||||
),
|
||||
const Text('本月表现', style: TextStyle(fontSize: 12, color: Colors.grey)),
|
||||
const SizedBox(height: 20),
|
||||
Center(
|
||||
@@ -179,7 +190,10 @@ class MinePage extends GetView<MineController> {
|
||||
padding: const EdgeInsets.only(top: 12.0),
|
||||
child: Row(
|
||||
children: [
|
||||
const Text('优秀驾驶员', style: TextStyle(fontSize: 14, fontWeight: FontWeight.w500)),
|
||||
const Text(
|
||||
'优秀驾驶员',
|
||||
style: TextStyle(fontSize: 14, fontWeight: FontWeight.w500),
|
||||
),
|
||||
const Spacer(),
|
||||
Container(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 6),
|
||||
@@ -187,11 +201,14 @@ class MinePage extends GetView<MineController> {
|
||||
color: Colors.blue,
|
||||
borderRadius: BorderRadius.circular(16),
|
||||
),
|
||||
child: const Text('A+', style: TextStyle(color: Colors.white, fontWeight: FontWeight.bold)),
|
||||
)
|
||||
child: const Text(
|
||||
'A+',
|
||||
style: TextStyle(color: Colors.white, fontWeight: FontWeight.bold),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
)
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
@@ -199,7 +216,12 @@ class MinePage extends GetView<MineController> {
|
||||
}
|
||||
|
||||
// 驾驶得分卡片中的评分项
|
||||
Widget _buildScoreDetailRow(IconData icon, String title, String subtitle, bool isCompleted) {
|
||||
Widget _buildScoreDetailRow(
|
||||
IconData icon,
|
||||
String title,
|
||||
String subtitle,
|
||||
bool isCompleted,
|
||||
) {
|
||||
return Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 8.0),
|
||||
child: Row(
|
||||
@@ -214,13 +236,15 @@ class MinePage extends GetView<MineController> {
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(title, style: const TextStyle(fontSize: 14, fontWeight: FontWeight.bold)),
|
||||
Text(
|
||||
title,
|
||||
style: const TextStyle(fontSize: 14, fontWeight: FontWeight.bold),
|
||||
),
|
||||
Text(subtitle, style: const TextStyle(fontSize: 12, color: Colors.grey)),
|
||||
],
|
||||
),
|
||||
),
|
||||
if (isCompleted)
|
||||
const Icon(Icons.check_circle, color: Colors.blue),
|
||||
if (isCompleted) const Icon(Icons.check_circle, color: Colors.blue),
|
||||
],
|
||||
),
|
||||
);
|
||||
@@ -236,7 +260,10 @@ class MinePage extends GetView<MineController> {
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
const Text('本月记录', style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold)),
|
||||
const Text(
|
||||
'本月记录',
|
||||
style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold),
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
_buildRecordRow(Icons.autorenew, '加氢预约践行率', '100%'),
|
||||
const Divider(),
|
||||
@@ -301,7 +328,9 @@ class MinePage extends GetView<MineController> {
|
||||
children: [
|
||||
Icon(icon, color: Colors.blue, size: 20),
|
||||
const SizedBox(width: 10),
|
||||
Expanded(child: Text(text, style: const TextStyle(fontSize: 12, color: Colors.black54))),
|
||||
Expanded(
|
||||
child: Text(text, style: const TextStyle(fontSize: 12, color: Colors.black54)),
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
@@ -319,7 +348,10 @@ class MinePage extends GetView<MineController> {
|
||||
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(24)),
|
||||
elevation: 2,
|
||||
),
|
||||
child: const Text('退出登录', style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold)),
|
||||
child: const Text(
|
||||
'退出登录',
|
||||
style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user