business details empty ui started

This commit is contained in:
vignesh 2022-05-25 14:21:11 +05:30
parent a0a6ba3860
commit c9fda10ec9
6 changed files with 1199 additions and 1053 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 322 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 314 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 201 KiB

View File

@ -285,7 +285,6 @@ class _businesshomeState extends State<businesshome> {
],
),
),
Spacer(),
Row(
children: [
Padding(
@ -462,7 +461,6 @@ class _businesshomeState extends State<businesshome> {
),
),
),
Spacer(),
Padding(
padding: const EdgeInsets.only(left: 15),
child: InkWell(
@ -594,7 +592,6 @@ class _businesshomeState extends State<businesshome> {
),
),
),
Spacer(),
Padding(
padding: const EdgeInsets.only(left: 15),
child: InkWell(
@ -729,7 +726,6 @@ class _businesshomeState extends State<businesshome> {
],
),
),
Spacer(),
BottomNavigationBar(
iconSize: 20,
unselectedFontSize: 12,

View File

@ -0,0 +1,91 @@
import 'package:flutter/material.dart';
import 'package:flutter_switch/flutter_switch.dart';
class businessdetailsempty extends StatefulWidget {
const businessdetailsempty({Key? key}) : super(key: key);
@override
State<businessdetailsempty> createState() => _businessdetailsemptyState();
}
bool status = true;
class _businessdetailsemptyState extends State<businessdetailsempty> {
@override
Widget build(BuildContext context) {
return Scaffold(
body: SafeArea(
child: Column(
children: [
Container(
height: 400,
width: double.infinity,
alignment: Alignment.topCenter,
child: Stack(
children: [
Container(
height: 250,
decoration: BoxDecoration(
image: DecorationImage(
image: AssetImage('assets/images/bg.png'),
fit: BoxFit.cover),
borderRadius: BorderRadius.only(
bottomLeft: Radius.circular(20),
bottomRight: Radius.circular(20),
),
),
),
Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
FloatingActionButton(
child: Icon(
Icons.arrow_back,
size: 24,
color: Color(0xFF3D3D3D),
),
mini: true,
backgroundColor: Colors.white,
onPressed: () {
Navigator.pop(context);
},
),
Spacer(),
FlutterSwitch(
width: 107,
height: 50,
valueFontSize: 12,
toggleSize: 20,
value: status,
borderRadius: 30.0,
padding: 5,
showOnOff: true,
onToggle: (val) {
setState(() {
status = val;
});
},
activeText: "OPEN",
activeSwitchBorder:
Border.all(color: Colors.white, width: 10),
inactiveSwitchBorder:
Border.all(color: Colors.white, width: 10),
activeTextColor: Colors.white,
activeTextFontWeight: FontWeight.w600,
activeColor: Color(0xFF09CD99),
inactiveText: "CLOSED",
inactiveTextColor: Colors.white,
inactiveTextFontWeight: FontWeight.w600,
inactiveColor: Color(0xFFFF4B4C),
),
],
),
],
),
),
],
),
),
);
}
}

File diff suppressed because it is too large Load Diff