123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495 |
- import 'package:flutter/material.dart';
- class ListPage extends StatelessWidget {
- const ListPage({Key? key}) : super(key: key);
- @override
- Widget build(BuildContext context) {
- var items = [
- 'Foods & Drinks',
- 'Services',
- 'Additional',
- 'First Aid',
- 'Ticket',
- 'Vacation',
- 'Transportation'
- ];
- return Scaffold(
- appBar: AppBar(
- backgroundColor: Color(0xff078C84),
- ),
- resizeToAvoidBottomInset: false,
- body: ListView(
- children: [
- Card(
- child: Column(
- children: [
- Row(
- children: [
- Text(
- 'Top Menu',
- textAlign: TextAlign.left,
- style: TextStyle(
- fontWeight: FontWeight.w500,
- color: Color(0xff292D32)),
- ),
- Expanded(child: Container()),
- ElevatedButton(
- style: ElevatedButton.styleFrom(
- backgroundColor:
- Color(0xff078C84).withOpacity(0.1)),
- onPressed: () {
- print('Done');
- },
- child: Text(
- 'Done',
- style: TextStyle(
- color: Color(0xff078C84),
- fontWeight: FontWeight.w300),
- ))
- ],
- ),
- Padding(
- padding: const EdgeInsets.all(8.0),
- child: Row(
- children: [
- Container(
- decoration: BoxDecoration(
- border: Border.all(color: Color(0xffCCA600)),
- borderRadius:
- BorderRadius.all(Radius.circular(20)),
- color: Color(0xffCCA600).withOpacity(0.4)),
- padding: const EdgeInsets.all(10.0),
- child: Image.asset(
- 'assets/images/food.png',
- width: 36,
- height: 36,
- fit: BoxFit.cover,
- ),
- ),
- Padding(
- padding: const EdgeInsets.all(8.0),
- child: Column(
- crossAxisAlignment: CrossAxisAlignment.start,
- children: [
- Text(
- 'Foods & Drinks',
- style: TextStyle(fontSize: 14),
- ),
- Text(
- 'Description of foods & drink',
- style: TextStyle(fontSize: 12),
- ),
- ],
- ),
- ),
- Expanded(child: Container()),
- IconDelete()
- ],
- ),
- ),
- Padding(
- padding: const EdgeInsets.all(8.0),
- child: Row(
- children: [
- Container(
- decoration: BoxDecoration(
- border: Border.all(color: Color(0xff90D8F9)),
- borderRadius:
- BorderRadius.all(Radius.circular(20)),
- color: Color(0xff90D8F9).withOpacity(0.22)),
- padding: const EdgeInsets.all(10.0),
- child: Image.asset(
- 'assets/images/service.png',
- width: 36,
- height: 36,
- fit: BoxFit.cover,
- ),
- ),
- Padding(
- padding: const EdgeInsets.all(8.0),
- child: Column(
- crossAxisAlignment: CrossAxisAlignment.start,
- children: [
- Text(
- 'Services',
- style: TextStyle(fontSize: 14),
- ),
- Text(
- 'Description of services',
- style: TextStyle(fontSize: 12),
- ),
- ],
- ),
- ),
- Expanded(child: Container()),
- IconDelete()
- ],
- ),
- ),
- Padding(
- padding: const EdgeInsets.all(8.0),
- child: Row(
- children: [
- Container(
- decoration: BoxDecoration(
- border: Border.all(color: Color(0xffAACEE0)),
- borderRadius:
- BorderRadius.all(Radius.circular(20)),
- color: Color(0xffAACEE0).withOpacity(0.31)),
- padding: const EdgeInsets.all(10.0),
- child: Image.asset(
- 'assets/images/additional.png',
- width: 36,
- height: 36,
- fit: BoxFit.cover,
- ),
- ),
- Padding(
- padding: const EdgeInsets.all(8.0),
- child: Column(
- crossAxisAlignment: CrossAxisAlignment.start,
- children: [
- Text(
- 'Additional',
- style: TextStyle(fontSize: 14),
- ),
- Text(
- 'Description of additional',
- style: TextStyle(fontSize: 12),
- ),
- ],
- ),
- ),
- Expanded(child: Container()),
- IconDelete()
- ],
- ),
- ),
- Padding(
- padding: const EdgeInsets.all(8.0),
- child: Row(
- children: [
- Container(
- decoration: BoxDecoration(
- border: Border.all(color: Color(0xffFF1111)),
- borderRadius:
- BorderRadius.all(Radius.circular(20)),
- color: Color(0xffFF1111).withOpacity(0.15)),
- padding: const EdgeInsets.all(10.0),
- child: Image.asset(
- 'assets/images/firstaid.png',
- width: 36,
- height: 36,
- fit: BoxFit.cover,
- ),
- ),
- Padding(
- padding: const EdgeInsets.all(8.0),
- child: Column(
- crossAxisAlignment: CrossAxisAlignment.start,
- children: [
- Text(
- 'First Aid',
- style: TextStyle(fontSize: 14),
- ),
- Text(
- 'Description of first aid',
- style: TextStyle(fontSize: 12),
- ),
- ],
- ),
- ),
- Expanded(child: Container()),
- IconDelete()
- ],
- ),
- ),
- Padding(
- padding: const EdgeInsets.all(8.0),
- child: Row(
- children: [
- Container(
- decoration: BoxDecoration(
- border: Border.all(color: Color(0xff5ED8F6)),
- borderRadius:
- BorderRadius.all(Radius.circular(20)),
- color: Color(0xff5ED8F6).withOpacity(0.26)),
- padding: const EdgeInsets.all(10.0),
- child: Image.asset(
- 'assets/images/ticket.png',
- width: 36,
- height: 36,
- fit: BoxFit.cover,
- ),
- ),
- Padding(
- padding: const EdgeInsets.all(8.0),
- child: Column(
- crossAxisAlignment: CrossAxisAlignment.start,
- children: [
- Text(
- 'Ticket',
- style: TextStyle(fontSize: 14),
- ),
- Text(
- 'Description of ticket',
- style: TextStyle(fontSize: 12),
- ),
- ],
- ),
- ),
- Expanded(child: Container()),
- IconDelete()
- ],
- ),
- ),
- Padding(
- padding: const EdgeInsets.all(8.0),
- child: Row(
- children: [
- Container(
- decoration: BoxDecoration(
- border: Border.all(color: Color(0xffCCA600)),
- borderRadius:
- BorderRadius.all(Radius.circular(20)),
- color: Color(0xffCCA600).withOpacity(0.2)),
- padding: const EdgeInsets.all(10.0),
- child: Image.asset(
- 'assets/images/vacation.png',
- width: 36,
- height: 36,
- fit: BoxFit.cover,
- ),
- ),
- Padding(
- padding: const EdgeInsets.all(8.0),
- child: Column(
- crossAxisAlignment: CrossAxisAlignment.start,
- children: [
- Text(
- 'Vacation',
- style: TextStyle(fontSize: 14),
- ),
- Text(
- 'Description of vacation',
- style: TextStyle(fontSize: 12),
- ),
- ],
- ),
- ),
- Expanded(child: Container()),
- IconDelete()
- ],
- ),
- ),
- Padding(
- padding: const EdgeInsets.all(8.0),
- child: Row(
- children: [
- Container(
- decoration: BoxDecoration(
- border: Border.all(color: Color(0xff6C8BA5)),
- borderRadius:
- BorderRadius.all(Radius.circular(20)),
- color: Color(0xff6C8BA5).withOpacity(0.24)),
- padding: const EdgeInsets.all(10.0),
- child: Image.asset(
- 'assets/images/transportation.png',
- width: 36,
- height: 36,
- fit: BoxFit.cover,
- ),
- ),
- Padding(
- padding: const EdgeInsets.all(8.0),
- child: Column(
- crossAxisAlignment: CrossAxisAlignment.start,
- children: [
- Text(
- 'Transportation',
- style: TextStyle(fontSize: 14),
- ),
- Text(
- 'Description of transportation',
- style: TextStyle(fontSize: 12),
- ),
- ],
- ),
- ),
- Expanded(child: Container()),
- IconDelete()
- ],
- ),
- ),
- ],
- ),
- ),
- Card(
- child: Column(
- children: [
- Row(
- children: [
- Text(
- 'Available Menu',
- textAlign: TextAlign.left,
- ),
- ],
- ),
- Padding(
- padding: const EdgeInsets.all(8.0),
- child: Row(
- children: [
- Container(
- decoration: BoxDecoration(
- border: Border.all(color: Color(0xffCCA600)),
- borderRadius:
- BorderRadius.all(Radius.circular(20)),
- color: Color(0xffCCA600).withOpacity(0.2)),
- padding: const EdgeInsets.all(10.0),
- child: Image.asset(
- 'assets/images/food.png',
- width: 36,
- height: 36,
- fit: BoxFit.cover,
- ),
- ),
- Padding(
- padding: const EdgeInsets.all(8.0),
- child: Column(
- crossAxisAlignment: CrossAxisAlignment.start,
- children: [
- Text(
- 'Foods & Drinks',
- style: TextStyle(fontSize: 14),
- ),
- Text(
- 'Description of foods & drink',
- style: TextStyle(fontSize: 12),
- ),
- ],
- ),
- ),
- Expanded(child: Container()),
- IconAdd(),
- ],
- ),
- ),
- Padding(
- padding: const EdgeInsets.all(8.0),
- child: Row(
- children: [
- Container(
- decoration: BoxDecoration(
- border: Border.all(color: Color(0xff90D8F9)),
- borderRadius:
- BorderRadius.all(Radius.circular(20)),
- color: Color(0xff90D8F9).withOpacity(0.22)),
- padding: const EdgeInsets.all(10.0),
- child: Image.asset(
- 'assets/images/service.png',
- width: 36,
- height: 36,
- fit: BoxFit.cover,
- ),
- ),
- Padding(
- padding: const EdgeInsets.all(8.0),
- child: Column(
- crossAxisAlignment: CrossAxisAlignment.start,
- children: [
- Text(
- 'Services',
- style: TextStyle(fontSize: 14),
- ),
- Text(
- 'Description of services',
- style: TextStyle(fontSize: 12),
- ),
- ],
- ),
- ),
- Expanded(child: Container()),
- IconAdd(),
- ],
- ),
- ),
- Padding(
- padding: const EdgeInsets.all(8.0),
- child: Row(
- children: [
- Container(
- decoration: BoxDecoration(
- border: Border.all(color: Color(0xffAACEE0)),
- borderRadius:
- BorderRadius.all(Radius.circular(20)),
- color: Color(0xffAACEE0).withOpacity(0.31)),
- padding: const EdgeInsets.all(10.0),
- child: Image.asset(
- 'assets/images/additional.png',
- width: 36,
- height: 36,
- fit: BoxFit.cover,
- ),
- ),
- Padding(
- padding: const EdgeInsets.all(8.0),
- child: Column(
- crossAxisAlignment: CrossAxisAlignment.start,
- children: [
- Text(
- 'Additional',
- style: TextStyle(fontSize: 14),
- ),
- Text(
- 'Description of additional',
- style: TextStyle(fontSize: 12),
- ),
- ],
- ),
- ),
- Expanded(child: Container()),
- IconAdd(),
- ],
- ),
- ),
- ],
- ),
- ),
- ],
- ));
- }
- }
- class IconAdd extends StatelessWidget {
- const IconAdd({
- Key? key,
- }) : super(key: key);
- @override
- Widget build(BuildContext context) {
- return Icon(
- Icons.add_circle,
- color: Colors.red,
- );
- }
- }
- class IconDelete extends StatelessWidget {
- const IconDelete({
- Key? key,
- }) : super(key: key);
- @override
- Widget build(BuildContext context) {
- return Row(
- children: [
- Icon(
- Icons.do_not_disturb_on,
- color: Colors.red,
- ),
- Icon(Icons.dehaze),
- ],
- );
- }
- }
|