2022-05-13 07:01:36 +00:00
|
|
|
import 'package:flutter/material.dart';
|
2022-05-14 07:00:36 +00:00
|
|
|
import 'package:dotted_border/dotted_border.dart';
|
2022-05-14 20:28:31 +00:00
|
|
|
import 'package:openclosenew/11_busiesshome.dart';
|
2022-05-13 07:01:36 +00:00
|
|
|
|
2022-05-31 13:48:18 +00:00
|
|
|
import 'colors.dart';
|
|
|
|
|
2022-05-13 07:01:36 +00:00
|
|
|
class businessempty extends StatefulWidget {
|
|
|
|
const businessempty({Key? key}) : super(key: key);
|
|
|
|
|
|
|
|
@override
|
|
|
|
State<businessempty> createState() => _businessemptyState();
|
|
|
|
}
|
|
|
|
|
|
|
|
class _businessemptyState extends State<businessempty> {
|
2022-05-14 07:00:36 +00:00
|
|
|
int _selectedIndex = 0;
|
|
|
|
static const TextStyle optionStyle = TextStyle(
|
|
|
|
fontFamily: 'Manrope',
|
|
|
|
fontSize: 10,
|
|
|
|
fontWeight: FontWeight.w400,
|
|
|
|
fontStyle: FontStyle.normal,
|
|
|
|
);
|
|
|
|
static const List<Widget> _widgetOptions = <Widget>[
|
|
|
|
Text(
|
|
|
|
'Index 0: Home',
|
|
|
|
style: optionStyle,
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'Index 1: Business',
|
|
|
|
style: optionStyle,
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'Index 2: School',
|
|
|
|
style: optionStyle,
|
|
|
|
),
|
|
|
|
];
|
|
|
|
|
|
|
|
void _onItemTapped(int index) {
|
|
|
|
setState(() {
|
|
|
|
_selectedIndex = index;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2022-05-13 07:01:36 +00:00
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return Scaffold(
|
|
|
|
backgroundColor: Colors.white,
|
2022-05-14 07:00:36 +00:00
|
|
|
body: Column(
|
|
|
|
children: [
|
|
|
|
SafeArea(
|
|
|
|
child: Row(
|
2022-05-13 07:01:36 +00:00
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
2022-05-14 07:00:36 +00:00
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
2022-05-13 07:01:36 +00:00
|
|
|
children: [
|
2022-05-14 07:00:36 +00:00
|
|
|
Container(
|
|
|
|
height: 50,
|
|
|
|
width: 50,
|
|
|
|
margin: EdgeInsets.all(20),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
borderRadius: BorderRadius.circular(50),
|
2022-05-31 13:48:18 +00:00
|
|
|
color: Gray,
|
2022-05-13 07:01:36 +00:00
|
|
|
),
|
|
|
|
),
|
2022-05-14 07:00:36 +00:00
|
|
|
Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
SizedBox(
|
|
|
|
height: 25,
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'Hi, Sudharsan',
|
|
|
|
style: TextStyle(
|
2022-05-31 13:48:18 +00:00
|
|
|
color: DarkGray,
|
2022-05-14 07:00:36 +00:00
|
|
|
fontSize: 16,
|
|
|
|
fontFamily: 'Manrope',
|
|
|
|
fontStyle: FontStyle.normal,
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'Mon, 02 May 2022',
|
|
|
|
style: TextStyle(
|
|
|
|
fontFamily: 'Manrope',
|
|
|
|
fontStyle: FontStyle.normal,
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
fontSize: 11,
|
2022-05-31 13:48:18 +00:00
|
|
|
color: Gray,
|
2022-05-14 07:00:36 +00:00
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
Spacer(),
|
|
|
|
Padding(
|
|
|
|
padding: const EdgeInsets.only(top: 20),
|
|
|
|
child: IconButton(
|
|
|
|
icon: Image.asset('assets/images/bell.png'),
|
|
|
|
onPressed: () {
|
|
|
|
Navigator.pop(context);
|
|
|
|
},
|
2022-05-13 07:01:36 +00:00
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
2022-05-14 07:00:36 +00:00
|
|
|
),
|
|
|
|
Spacer(),
|
|
|
|
Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
DottedBorder(
|
2022-05-30 15:30:50 +00:00
|
|
|
dashPattern: [5, 5, 5, 5],
|
2022-05-31 13:48:18 +00:00
|
|
|
color: primaryColor,
|
2022-05-14 07:00:36 +00:00
|
|
|
padding: EdgeInsets.all(5),
|
|
|
|
radius: Radius.circular(6),
|
|
|
|
child: Container(
|
|
|
|
height: 100,
|
|
|
|
width: 330,
|
|
|
|
child: Column(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
IconButton(
|
2022-05-31 13:48:18 +00:00
|
|
|
icon: Image.asset(
|
|
|
|
'assets/images/shop.png',
|
|
|
|
color: primaryColor,
|
|
|
|
),
|
2022-05-14 07:00:36 +00:00
|
|
|
onPressed: () {
|
2022-05-14 20:28:31 +00:00
|
|
|
Navigator.push(
|
|
|
|
context,
|
|
|
|
MaterialPageRoute(
|
|
|
|
builder: (_) => businesshome()));
|
2022-05-14 07:00:36 +00:00
|
|
|
},
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'Add your Business',
|
|
|
|
style: TextStyle(
|
|
|
|
fontFamily: 'Manrope',
|
|
|
|
fontStyle: FontStyle.normal,
|
|
|
|
fontWeight: FontWeight.w400,
|
|
|
|
fontSize: 14,
|
2022-05-31 13:48:18 +00:00
|
|
|
color: primaryColor,
|
2022-05-14 07:00:36 +00:00
|
|
|
),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
2022-05-13 07:01:36 +00:00
|
|
|
),
|
2022-05-14 07:00:36 +00:00
|
|
|
],
|
|
|
|
),
|
|
|
|
Spacer(),
|
|
|
|
BottomNavigationBar(
|
2022-05-14 20:28:31 +00:00
|
|
|
iconSize: 20,
|
2022-05-14 07:00:36 +00:00
|
|
|
unselectedFontSize: 12,
|
|
|
|
selectedFontSize: 12,
|
|
|
|
type: BottomNavigationBarType.fixed,
|
|
|
|
items: const <BottomNavigationBarItem>[
|
|
|
|
BottomNavigationBarItem(
|
2022-05-14 20:28:31 +00:00
|
|
|
icon: ImageIcon(
|
|
|
|
AssetImage('assets/images/store.png'),
|
|
|
|
),
|
2022-05-14 07:00:36 +00:00
|
|
|
label: 'Business',
|
|
|
|
),
|
|
|
|
BottomNavigationBarItem(
|
2022-05-14 20:28:31 +00:00
|
|
|
icon: ImageIcon(
|
|
|
|
AssetImage('assets/images/messages.png'),
|
|
|
|
),
|
2022-05-14 07:00:36 +00:00
|
|
|
label: 'Chat',
|
|
|
|
),
|
|
|
|
BottomNavigationBarItem(
|
2022-05-14 20:28:31 +00:00
|
|
|
icon: ImageIcon(
|
|
|
|
AssetImage('assets/images/discount.png'),
|
|
|
|
),
|
2022-05-14 07:00:36 +00:00
|
|
|
label: 'Offer',
|
|
|
|
),
|
|
|
|
BottomNavigationBarItem(
|
2022-05-14 20:28:31 +00:00
|
|
|
icon: ImageIcon(
|
|
|
|
AssetImage('assets/images/profile.png'),
|
|
|
|
),
|
2022-05-14 07:00:36 +00:00
|
|
|
label: 'Profile',
|
|
|
|
),
|
|
|
|
BottomNavigationBarItem(
|
2022-05-14 20:28:31 +00:00
|
|
|
icon: ImageIcon(
|
|
|
|
AssetImage('assets/images/setting.png'),
|
|
|
|
),
|
2022-05-14 07:00:36 +00:00
|
|
|
label: 'Settings',
|
|
|
|
),
|
|
|
|
],
|
|
|
|
currentIndex: _selectedIndex,
|
2022-05-31 13:48:18 +00:00
|
|
|
selectedItemColor: primaryColor,
|
2022-05-14 07:00:36 +00:00
|
|
|
onTap: _onItemTapped,
|
|
|
|
),
|
|
|
|
],
|
2022-05-13 07:01:36 +00:00
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|