Browse Source

fix ui gridview prameter, button action

master
daivph 5 years ago
parent
commit
7786565576
2 changed files with 8 additions and 9 deletions
  1. +4
    -4
      lib/presentation/screens/plot_detail/sc_plot_action.dart
  2. +4
    -5
      lib/presentation/screens/plot_detail/sc_plot_parameter.dart

+ 4
- 4
lib/presentation/screens/plot_detail/sc_plot_action.dart View File

@@ -138,15 +138,15 @@ class _PlotActionScreenState extends State<PlotActionScreen>
children: [
Image.asset(
actionType.icon,
width: Get.width / 6,
height: Get.width / 6,
width: Get.width / 9,
height: Get.width / 9,
),
Text(
actionType.actionName,
textAlign: TextAlign.center,
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: 16,
fontSize: 13,
color: AppColors.BLACK2,
),
),
@@ -159,7 +159,7 @@ class _PlotActionScreenState extends State<PlotActionScreen>
Widget build(BuildContext context) {
return GridView.count(
shrinkWrap: true,
crossAxisCount: 2,
crossAxisCount: 3,
children: actions.map(
(item) {
return _createActionButtons(item, context);

+ 4
- 5
lib/presentation/screens/plot_detail/sc_plot_parameter.dart View File

@@ -66,7 +66,7 @@ class _PlotParameterScreenState extends State<PlotParameterScreen>
return RefreshIndicator(
child: GridView.builder(
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
crossAxisCount: 2),
crossAxisCount: 2, childAspectRatio: 3 / 2),
physics: AlwaysScrollableScrollPhysics(),
itemBuilder: (BuildContext context, int index) {
return index >= state.items.length
@@ -130,18 +130,17 @@ class ItemInfinityWidget extends StatelessWidget {
style: TextStyle(
color: item.status ? Colors.red : AppColors.YELLOW,
fontWeight: FontWeight.bold,
fontSize: 28),
fontSize: 22),
),
Expanded(child: Container()),
Flexible(
child: Text(
"${item.name ?? ''}",
maxLines: 2,
style: TextStyle(fontWeight: FontWeight.bold, fontSize: 20),
style: TextStyle(fontWeight: FontWeight.bold, fontSize: 18),
),
),
Text(item.executeDate.format_DDMMYY_HHmm(),
style: TextStyle(fontSize: 15, color: Colors.grey))
style: TextStyle(fontSize: 13, color: Colors.grey))
],
),
);

Loading…
Cancel
Save