所有一级页面和不分二级页面

This commit is contained in:
2026-05-25 12:58:29 +08:00
parent b9f747de05
commit afef5c4ef1
158 changed files with 13082 additions and 1602 deletions

View File

@@ -27,11 +27,65 @@ class QuickEntryCard extends StatelessWidget {
],
),
const SizedBox(height: 12),
Container(
padding: const EdgeInsets.all(16),
SizedBox(
height: 85,
child: ListView(
scrollDirection: Axis.horizontal,
physics: const BouncingScrollPhysics(),
padding: const EdgeInsets.only(right: 16),
children: [
_buildQuickEntryCard(
icon: Icons.upload_file,
label: '设备上报',
),
const SizedBox(width: 8),
_buildQuickEntryCard(
icon: Icons.qr_code_scanner,
label: '扫一扫',
),
const SizedBox(width: 8),
_buildQuickEntryCard(
icon: Icons.assignment,
label: '工单任务',
),
const SizedBox(width: 8),
_buildQuickEntryCard(
icon: Icons.notifications_active,
label: '告警中心',
),
const SizedBox(width: 8),
_buildQuickEntryCard(
icon: Icons.map,
label: '电厂地图',
),
const SizedBox(width: 8),
_buildQuickEntryCard(
icon: Icons.devices,
label: '设备列表',
),
const SizedBox(width: 8),
],
),
),
],
);
}
Widget _buildQuickEntryCard({
required IconData icon,
required String label,
}) {
return InkWell(
onTap: () => print('点击:$label'),
borderRadius: BorderRadius.circular(12),
child: SizedBox(
width: 85,
height: 85,
child: Container(
padding: const EdgeInsets.all(10),
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(16),
borderRadius: BorderRadius.circular(12),
boxShadow: const [
BoxShadow(
color: Color(0x0D000000),
@@ -40,54 +94,29 @@ class QuickEntryCard extends StatelessWidget {
),
],
),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceAround,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
_buildQuickEntryItem(
icon: Icons.upload_file,
label: '设备上报',
Icon(
icon,
color: const Color(0xFF165DFF),
size: 26,
),
_buildQuickEntryItem(
icon: Icons.qr_code_scanner,
label: '扫一扫',
),
_buildQuickEntryItem(
icon: Icons.assignment,
label: '工单任务',
),
_buildQuickEntryItem(
icon: Icons.notifications_active,
label: '告警中心',
const SizedBox(height: 6),
Text(
label,
textAlign: TextAlign.center,
style: const TextStyle(
color: Color(0xFF4E5969),
fontSize: 12,
height: 1.2,
),
maxLines: 1,
overflow: TextOverflow.ellipsis,
),
],
),
),
],
);
}
Widget _buildQuickEntryItem({
required IconData icon,
required String label,
}) {
return InkWell(
onTap: () => print('点击:$label'),
child: Column(
children: [
Icon(
icon,
color: const Color(0xFF165DFF),
size: 32,
),
const SizedBox(height: 8),
Text(
label,
style: const TextStyle(
color: Color(0xFF4E5969),
fontSize: 14,
),
),
],
),
);
}