屏幕常亮
This commit is contained in:
@@ -140,7 +140,7 @@ class _AppInfoPageState extends State<AppInfoPage> {
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
const Text(
|
||||
'Poes',
|
||||
'情景诗词',
|
||||
style: TextStyle(
|
||||
fontSize: 26,
|
||||
fontWeight: FontWeight.bold,
|
||||
@@ -149,7 +149,7 @@ class _AppInfoPageState extends State<AppInfoPage> {
|
||||
),
|
||||
const SizedBox(height: 6),
|
||||
Text(
|
||||
'情景诗词 · 应用信息',
|
||||
'Poes · 应用信息',
|
||||
style: TextStyle(
|
||||
fontSize: 13,
|
||||
color: Colors.white.withValues(alpha: 0.85),
|
||||
@@ -178,9 +178,27 @@ class _AppInfoPageState extends State<AppInfoPage> {
|
||||
),
|
||||
const SizedBox(width: 6),
|
||||
const Text(
|
||||
'版本 1.2',
|
||||
'框架 1.3',
|
||||
style: TextStyle(fontSize: 12, color: Colors.white),
|
||||
),
|
||||
const SizedBox(width: 8),
|
||||
Container(
|
||||
padding: const EdgeInsets.symmetric(
|
||||
horizontal: 8,
|
||||
vertical: 2,
|
||||
),
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.white.withValues(alpha: 0.2),
|
||||
borderRadius: BorderRadius.circular(4),
|
||||
),
|
||||
child: const Text(
|
||||
'软件版本 1.5',
|
||||
style: TextStyle(
|
||||
fontSize: 10,
|
||||
color: Colors.white,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
@@ -231,10 +249,34 @@ class _AppInfoPageState extends State<AppInfoPage> {
|
||||
),
|
||||
),
|
||||
const Divider(height: 1),
|
||||
_buildInfoItem('Flutter', '跨平台UI框架', Icons.flutter_dash),
|
||||
_buildInfoItem('Dart', '编程语言', Icons.code),
|
||||
_buildInfoItem('shared_preferences', '本地存储', Icons.storage),
|
||||
_buildInfoItem('flutter_udid', '设备唯一标识', Icons.perm_identity),
|
||||
// 2x2 网格布局展示技术栈
|
||||
Padding(
|
||||
padding: const EdgeInsets.all(16),
|
||||
child: GridView.count(
|
||||
shrinkWrap: true,
|
||||
physics: const NeverScrollableScrollPhysics(),
|
||||
crossAxisCount: 2,
|
||||
mainAxisSpacing: 12,
|
||||
crossAxisSpacing: 12,
|
||||
childAspectRatio: 2.2,
|
||||
children: [
|
||||
_buildTechStackItem(
|
||||
'Flutter',
|
||||
'跨平台UI框架',
|
||||
Icons.flutter_dash,
|
||||
Colors.blue,
|
||||
),
|
||||
_buildTechStackItem('Dart', '编程语言', Icons.code, Colors.teal),
|
||||
_buildTechStackItem('SP', '本地存储', Icons.storage, Colors.orange),
|
||||
_buildTechStackItem(
|
||||
'dio',
|
||||
'网络处理',
|
||||
Icons.network_check,
|
||||
Colors.purple,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
@@ -335,12 +377,12 @@ class _AppInfoPageState extends State<AppInfoPage> {
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
const Text(
|
||||
'开源协议',
|
||||
'开源框架',
|
||||
style: TextStyle(fontSize: 14, fontWeight: FontWeight.w500),
|
||||
),
|
||||
const SizedBox(height: 2),
|
||||
Text(
|
||||
'BSD 3-Clause License',
|
||||
'Flutter SDK',
|
||||
style: TextStyle(fontSize: 12, color: Colors.grey[500]),
|
||||
),
|
||||
],
|
||||
@@ -823,6 +865,59 @@ class _AppInfoPageState extends State<AppInfoPage> {
|
||||
);
|
||||
}
|
||||
|
||||
// 2x2 网格技术栈项
|
||||
Widget _buildTechStackItem(
|
||||
String title,
|
||||
String value,
|
||||
IconData icon,
|
||||
Color color,
|
||||
) {
|
||||
return Container(
|
||||
padding: const EdgeInsets.all(12),
|
||||
decoration: BoxDecoration(
|
||||
color: color.withAlpha(20),
|
||||
borderRadius: BorderRadius.circular(12),
|
||||
border: Border.all(color: color.withAlpha(50), width: 1),
|
||||
),
|
||||
child: Row(
|
||||
children: [
|
||||
Container(
|
||||
padding: const EdgeInsets.all(8),
|
||||
decoration: BoxDecoration(
|
||||
color: color.withAlpha(30),
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
),
|
||||
child: Icon(icon, size: 20, color: color),
|
||||
),
|
||||
const SizedBox(width: 10),
|
||||
Expanded(
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Text(
|
||||
title,
|
||||
style: TextStyle(
|
||||
fontSize: 14,
|
||||
fontWeight: FontWeight.w600,
|
||||
color: color,
|
||||
),
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
const SizedBox(height: 2),
|
||||
Text(
|
||||
value,
|
||||
style: TextStyle(fontSize: 11, color: Colors.grey[600]),
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Widget _buildInfoItem(String title, String value, IconData icon) {
|
||||
return Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 12),
|
||||
|
||||
Reference in New Issue
Block a user