|
@@ -1,4 +1,5 @@
|
|
|
import 'package:flutter/material.dart';
|
|
|
+// import 'package:flutter_layout_grid/flutter_layout_grid.dart';
|
|
|
|
|
|
class ListBlockPage extends StatelessWidget {
|
|
|
const ListBlockPage({Key? key}) : super(key: key);
|
|
@@ -66,43 +67,47 @@ class ListBlockPage extends StatelessWidget {
|
|
|
Container(
|
|
|
decoration: BoxDecoration(color: Color(0xff078C84)),
|
|
|
),
|
|
|
- SingleChildScrollView(
|
|
|
- child: Container(
|
|
|
- decoration: BoxDecoration(
|
|
|
- color: Colors.white,
|
|
|
- borderRadius: BorderRadius.only(
|
|
|
- topLeft: Radius.circular(16),
|
|
|
- topRight: Radius.circular(16)),
|
|
|
- border: Border.all(color: Color(0xff078C84))),
|
|
|
- child: Column(
|
|
|
- children: [
|
|
|
- TopMenu(),
|
|
|
- Column(
|
|
|
- children: List.generate(
|
|
|
- items.length,
|
|
|
- (i) => SizedBox(
|
|
|
- child: ListTile(
|
|
|
- leading: gambar(items[i]),
|
|
|
- title: Text(items[i].type),
|
|
|
- ),
|
|
|
- )),
|
|
|
+ Container(
|
|
|
+ decoration: BoxDecoration(
|
|
|
+ color: Colors.white,
|
|
|
+ borderRadius: BorderRadius.only(
|
|
|
+ topLeft: Radius.circular(16),
|
|
|
+ topRight: Radius.circular(16)),
|
|
|
+ border: Border.all(color: Color(0xff078C84))),
|
|
|
+ child: Column(
|
|
|
+ children: [
|
|
|
+ TopMenu(),
|
|
|
+ GridView.builder(
|
|
|
+ shrinkWrap: true,
|
|
|
+ gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
|
|
|
+ crossAxisCount: 4, childAspectRatio: 16 / 9),
|
|
|
+ itemBuilder: (context, index) => Column(
|
|
|
+ mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
|
|
+ children: [
|
|
|
+ gambar(items[index]),
|
|
|
+ Text(items[index].type),
|
|
|
+ ],
|
|
|
),
|
|
|
- Divider(
|
|
|
- thickness: 8,
|
|
|
+ itemCount: items.length,
|
|
|
+ ),
|
|
|
+ // Divider(
|
|
|
+ // thickness: 8,
|
|
|
+ // ),
|
|
|
+ AvailableMenu(),
|
|
|
+ GridView.builder(
|
|
|
+ shrinkWrap: true,
|
|
|
+ gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
|
|
|
+ crossAxisCount: 4, childAspectRatio: 16 / 9),
|
|
|
+ itemBuilder: (context, index) => Column(
|
|
|
+ mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
|
|
+ children: [
|
|
|
+ gambar(items[index]),
|
|
|
+ Text(items[index].type),
|
|
|
+ ],
|
|
|
),
|
|
|
- AvailableMenu(),
|
|
|
- Column(
|
|
|
- children: List.generate(
|
|
|
- items.length,
|
|
|
- (i) => SizedBox(
|
|
|
- child: ListTile(
|
|
|
- leading: gambar(items[i]),
|
|
|
- title: Text(items[i].type),
|
|
|
- ),
|
|
|
- )),
|
|
|
- )
|
|
|
- ],
|
|
|
- ),
|
|
|
+ itemCount: items.length,
|
|
|
+ ),
|
|
|
+ ],
|
|
|
),
|
|
|
),
|
|
|
]));
|
|
@@ -175,15 +180,26 @@ class TopMenu extends StatelessWidget {
|
|
|
style: TextStyle(
|
|
|
fontWeight: FontWeight.bold, color: Color(0xff292D32)),
|
|
|
),
|
|
|
- Expanded(child: Container()),
|
|
|
+ Expanded(
|
|
|
+ child: Column(
|
|
|
+ mainAxisAlignment: MainAxisAlignment.center,
|
|
|
+ children: [
|
|
|
+ Container(
|
|
|
+ color: Color(0xff292D32).withOpacity(0.15),
|
|
|
+ height: 1,
|
|
|
+ width: 24,
|
|
|
+ ),
|
|
|
+ ],
|
|
|
+ ),
|
|
|
+ ),
|
|
|
ElevatedButton(
|
|
|
style: ElevatedButton.styleFrom(
|
|
|
backgroundColor: Color(0xff078C84).withOpacity(0.1)),
|
|
|
onPressed: () {
|
|
|
- print('Done');
|
|
|
+ print('Customize');
|
|
|
},
|
|
|
child: Text(
|
|
|
- 'Done',
|
|
|
+ 'Customize',
|
|
|
style: TextStyle(
|
|
|
color: Color(0xff078C84), fontWeight: FontWeight.w300),
|
|
|
))
|