188 lines
5.7 KiB
Dart
188 lines
5.7 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:dotted_border/dotted_border.dart';
|
|
import 'package:openclosenew/11_busiesshome.dart';
|
|
|
|
class businessempty extends StatefulWidget {
|
|
const businessempty({Key? key}) : super(key: key);
|
|
|
|
@override
|
|
State<businessempty> createState() => _businessemptyState();
|
|
}
|
|
|
|
class _businessemptyState extends State<businessempty> {
|
|
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;
|
|
});
|
|
}
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
backgroundColor: Colors.white,
|
|
body: Column(
|
|
children: [
|
|
SafeArea(
|
|
child: Row(
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: [
|
|
Container(
|
|
height: 50,
|
|
width: 50,
|
|
margin: EdgeInsets.all(20),
|
|
decoration: BoxDecoration(
|
|
borderRadius: BorderRadius.circular(50),
|
|
color: Colors.grey,
|
|
),
|
|
),
|
|
Column(
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: [
|
|
SizedBox(
|
|
height: 25,
|
|
),
|
|
Text(
|
|
'Hi, Sudharsan',
|
|
style: TextStyle(
|
|
color: Colors.black,
|
|
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,
|
|
),
|
|
),
|
|
],
|
|
),
|
|
Spacer(),
|
|
Padding(
|
|
padding: const EdgeInsets.only(top: 20),
|
|
child: IconButton(
|
|
icon: Image.asset('assets/images/bell.png'),
|
|
onPressed: () {
|
|
Navigator.pop(context);
|
|
},
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
Spacer(),
|
|
Column(
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: [
|
|
DottedBorder(
|
|
color: Color(0xff09CD99),
|
|
padding: EdgeInsets.all(5),
|
|
radius: Radius.circular(6),
|
|
child: Container(
|
|
height: 100,
|
|
width: 330,
|
|
child: Column(
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: [
|
|
IconButton(
|
|
icon: Image.asset('assets/images/shop.png'),
|
|
onPressed: () {
|
|
Navigator.push(
|
|
context,
|
|
MaterialPageRoute(
|
|
builder: (_) => businesshome()));
|
|
},
|
|
),
|
|
Text(
|
|
'Add your Business',
|
|
style: TextStyle(
|
|
fontFamily: 'Manrope',
|
|
fontStyle: FontStyle.normal,
|
|
fontWeight: FontWeight.w400,
|
|
fontSize: 14,
|
|
color: Color(0xff09CD99),
|
|
),
|
|
)
|
|
],
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
Spacer(),
|
|
BottomNavigationBar(
|
|
iconSize: 20,
|
|
unselectedFontSize: 12,
|
|
selectedFontSize: 12,
|
|
type: BottomNavigationBarType.fixed,
|
|
items: const <BottomNavigationBarItem>[
|
|
BottomNavigationBarItem(
|
|
icon: ImageIcon(
|
|
AssetImage('assets/images/store.png'),
|
|
),
|
|
label: 'Business',
|
|
),
|
|
BottomNavigationBarItem(
|
|
icon: ImageIcon(
|
|
AssetImage('assets/images/messages.png'),
|
|
),
|
|
label: 'Chat',
|
|
),
|
|
BottomNavigationBarItem(
|
|
icon: ImageIcon(
|
|
AssetImage('assets/images/discount.png'),
|
|
),
|
|
label: 'Offer',
|
|
),
|
|
BottomNavigationBarItem(
|
|
icon: ImageIcon(
|
|
AssetImage('assets/images/profile.png'),
|
|
),
|
|
label: 'Profile',
|
|
),
|
|
BottomNavigationBarItem(
|
|
icon: ImageIcon(
|
|
AssetImage('assets/images/setting.png'),
|
|
),
|
|
label: 'Settings',
|
|
),
|
|
],
|
|
currentIndex: _selectedIndex,
|
|
selectedItemColor: Color(0xff09CD99),
|
|
onTap: _onItemTapped,
|
|
),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|