2022-06-16 04:20:58 +00:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:openclosenew/FontFamily.dart';
|
|
|
|
import 'package:openclosenew/colors.dart';
|
|
|
|
|
|
|
|
import 'fontsize.dart';
|
|
|
|
|
|
|
|
class ProductListing extends StatefulWidget {
|
|
|
|
const ProductListing({Key? key}) : super(key: key);
|
|
|
|
|
|
|
|
@override
|
|
|
|
State<ProductListing> createState() => _ProductListingState();
|
|
|
|
}
|
|
|
|
|
2022-06-16 06:59:07 +00:00
|
|
|
class _ProductListingState extends State<ProductListing>
|
|
|
|
with TickerProviderStateMixin {
|
2022-06-16 04:20:58 +00:00
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
2022-06-16 06:59:07 +00:00
|
|
|
TabController _tabController = TabController(length: 5, vsync: this);
|
2022-06-16 04:20:58 +00:00
|
|
|
return Scaffold(
|
|
|
|
body: SafeArea(
|
2022-06-16 06:59:07 +00:00
|
|
|
child: Padding(
|
|
|
|
padding: const EdgeInsets.only(left: 20, right: 15, top: 10),
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
Row(
|
|
|
|
children: [
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
Navigator.pop(context);
|
|
|
|
},
|
|
|
|
child: Icon(
|
|
|
|
Icons.arrow_back,
|
|
|
|
color: DarkGray,
|
|
|
|
size: 24,
|
2022-06-16 04:20:58 +00:00
|
|
|
),
|
2022-06-16 06:59:07 +00:00
|
|
|
),
|
|
|
|
SizedBox(width: 20),
|
|
|
|
Text(
|
|
|
|
'Food Items',
|
|
|
|
style: TextStyle(
|
|
|
|
fontFamily: Font,
|
|
|
|
fontStyle: FontStyle.normal,
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
fontSize: HeadText,
|
|
|
|
color: DarkGray,
|
2022-06-16 04:20:58 +00:00
|
|
|
),
|
2022-06-16 06:59:07 +00:00
|
|
|
),
|
|
|
|
Spacer(),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {},
|
|
|
|
child: Icon(
|
|
|
|
Icons.add,
|
|
|
|
color: DarkGray,
|
|
|
|
size: 24,
|
2022-06-16 04:20:58 +00:00
|
|
|
),
|
2022-06-16 06:59:07 +00:00
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
Spacer(),
|
|
|
|
TabBar(
|
|
|
|
indicator: BoxDecoration(
|
|
|
|
color: primaryColor,
|
|
|
|
borderRadius: BorderRadius.circular(4)),
|
|
|
|
isScrollable: true,
|
|
|
|
labelColor: White,
|
|
|
|
unselectedLabelColor: Gray,
|
|
|
|
controller: _tabController,
|
|
|
|
labelStyle: TextStyle(
|
|
|
|
fontFamily: Font,
|
|
|
|
fontStyle: FontStyle.normal,
|
|
|
|
fontWeight: FontWeight.w400,
|
|
|
|
fontSize: 15,
|
|
|
|
),
|
|
|
|
tabs: [
|
|
|
|
Tab(text: "All"),
|
|
|
|
Tab(text: "Rice"),
|
|
|
|
Tab(text: "Starters"),
|
|
|
|
Tab(text: "Breads"),
|
|
|
|
Tab(text: "North In"),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
Container(
|
|
|
|
width: double.maxFinite,
|
|
|
|
height: 600,
|
|
|
|
child: TabBarView(
|
|
|
|
controller: _tabController,
|
|
|
|
children: [
|
|
|
|
Text('data'),
|
|
|
|
Text('data'),
|
|
|
|
Text('data'),
|
|
|
|
Text('data'),
|
|
|
|
Text('data'),
|
2022-06-16 04:20:58 +00:00
|
|
|
],
|
|
|
|
),
|
2022-06-16 06:59:07 +00:00
|
|
|
),
|
|
|
|
],
|
2022-06-16 04:20:58 +00:00
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|