Business Profile Form Success

17-BusinessProfileFormSuccess design finished
This commit is contained in:
vignesh 2022-05-29 23:58:03 +05:30
parent a749d36967
commit ef2b4e9463
5 changed files with 752 additions and 561 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

View File

@ -17,513 +17,521 @@ class _businessdetailsemptyState extends State<businessdetailsempty> {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return Scaffold(
body: SafeArea( body: SafeArea(
child: Column( child: SingleChildScrollView(
children: [ child: Column(
Container( children: [
height: 400, Container(
child: Stack( height: 400,
children: [ child: Stack(
Container( children: [
height: 250,
decoration: BoxDecoration(
image: const DecorationImage(
image: AssetImage('assets/images/bg.png'),
fit: BoxFit.cover,
),
borderRadius: BorderRadius.only(
bottomLeft: Radius.circular(20),
bottomRight: Radius.circular(20),
),
),
),
if (status == false)
Container( Container(
height: 250, height: 250,
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.grey.withOpacity(0.5), image: const DecorationImage(
image: AssetImage('assets/images/bg.png'),
fit: BoxFit.cover,
),
borderRadius: BorderRadius.only( borderRadius: BorderRadius.only(
bottomLeft: Radius.circular(20), bottomLeft: Radius.circular(20),
bottomRight: Radius.circular(20), bottomRight: Radius.circular(20),
), ),
), ),
), ),
Padding( if (status == false)
padding: EdgeInsets.only(left: 10, right: 10, bottom: 300), Container(
child: Row( height: 250,
children: [ decoration: BoxDecoration(
FloatingActionButton( color: Colors.grey.withOpacity(0.5),
child: Icon( borderRadius: BorderRadius.only(
Icons.arrow_back, bottomLeft: Radius.circular(20),
size: 24, bottomRight: Radius.circular(20),
color: Color(0xFF3D3D3D),
), ),
mini: true,
backgroundColor: Colors.white,
onPressed: () {
Navigator.pop(context);
},
), ),
Spacer(), ),
FlutterSwitch( Padding(
width: 107, padding:
height: 50, EdgeInsets.only(left: 10, right: 10, bottom: 300),
valueFontSize: 12, child: Row(
toggleSize: 20, children: [
value: status, FloatingActionButton(
borderRadius: 30.0, child: Icon(
padding: 5, Icons.arrow_back,
showOnOff: true, size: 24,
onToggle: (val) { color: Color(0xFF3D3D3D),
setState(() { ),
status = val; mini: true,
}); backgroundColor: Colors.white,
}, onPressed: () {
activeText: "OPEN", Navigator.pop(context);
activeSwitchBorder: },
Border.all(color: Colors.white, width: 10), ),
inactiveSwitchBorder: Spacer(),
Border.all(color: Colors.white, width: 10), FlutterSwitch(
activeTextColor: Colors.white, width: 107,
activeTextFontWeight: FontWeight.w600, height: 50,
activeColor: Color(0xFF09CD99), valueFontSize: 12,
inactiveText: "CLOSED", toggleSize: 20,
inactiveTextColor: Colors.white, value: status,
inactiveTextFontWeight: FontWeight.w600, borderRadius: 30.0,
inactiveColor: Color(0xFFFF4B4C), padding: 5,
), showOnOff: true,
], onToggle: (val) {
), setState(() {
), status = val;
Align( });
alignment: Alignment.center, },
child: Container( activeText: "OPEN",
margin: EdgeInsets.only(right: 20, left: 20, top: 150), activeSwitchBorder:
padding: EdgeInsets.all(12), Border.all(color: Colors.white, width: 10),
height: 270, inactiveSwitchBorder:
decoration: BoxDecoration( Border.all(color: Colors.white, width: 10),
color: Colors.white, activeTextColor: Colors.white,
borderRadius: BorderRadius.all( activeTextFontWeight: FontWeight.w600,
Radius.circular(10), activeColor: Color(0xFF09CD99),
), inactiveText: "CLOSED",
boxShadow: [ inactiveTextColor: Colors.white,
BoxShadow( inactiveTextFontWeight: FontWeight.w600,
color: Colors.grey.shade500, inactiveColor: Color(0xFFFF4B4C),
offset: Offset(4.0, 4.0),
blurRadius: 10.0,
spreadRadius: 1.0,
), ),
], ],
), ),
foregroundDecoration: BoxDecoration( ),
color: status ? null : Colors.white, Align(
backgroundBlendMode: alignment: Alignment.center,
status ? null : BlendMode.saturation, child: Container(
), margin: EdgeInsets.only(right: 20, left: 20, top: 150),
child: Column( padding: EdgeInsets.all(12),
children: [ height: 270,
Row( decoration: BoxDecoration(
crossAxisAlignment: CrossAxisAlignment.start, color: Colors.white,
mainAxisAlignment: MainAxisAlignment.center, borderRadius: BorderRadius.all(
children: [ Radius.circular(10),
Padding( ),
padding: const EdgeInsets.only(left: 5, top: 5), boxShadow: [
child: InkWell( BoxShadow(
onTap: () { color: Colors.grey.shade500,
Navigator.pop(context); offset: Offset(4.0, 4.0),
}, blurRadius: 10.0,
spreadRadius: 1.0,
),
],
),
foregroundDecoration: BoxDecoration(
color: status ? null : Colors.white,
backgroundBlendMode:
status ? null : BlendMode.saturation,
),
child: Column(
children: [
Row(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.center,
children: [
Padding(
padding:
const EdgeInsets.only(left: 5, top: 5),
child: InkWell(
onTap: () {
Navigator.pop(context);
},
child: Column(
children: [
Image.asset(
'assets/images/insert_logo.png',
width: 30,
height: 30,
),
Text(
"LOGO",
style: TextStyle(
fontFamily: "Manrope",
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w600,
letterSpacing: 0.25,
color: Color(0xFF5C5C5C),
),
),
],
),
),
),
Padding(
padding:
const EdgeInsets.only(left: 15, top: 10),
child: Column( child: Column(
crossAxisAlignment:
CrossAxisAlignment.start,
children: [ children: [
Image.asset( RichText(
'assets/images/insert_logo.png', text: TextSpan(
width: 30, text: "Barbeque Nation ",
height: 30, style: TextStyle(
fontFamily: 'Manrope',
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w600,
fontSize: 20,
color: Color(0xFF3D3D3D),
),
),
), ),
Text( RichText(
"LOGO", text: TextSpan(
style: TextStyle( children: [
fontFamily: "Manrope", TextSpan(
fontStyle: FontStyle.normal, text: "0.0 ",
fontWeight: FontWeight.w600, style: TextStyle(
letterSpacing: 0.25, fontFamily: 'Manrope',
color: Color(0xFF5C5C5C), fontStyle: FontStyle.normal,
fontWeight: FontWeight.w400,
fontSize: 15,
color: Color(0xFFFFBE3F),
),
),
WidgetSpan(
child: Icon(
Icons.star,
color: Color(0xFFFFBE3F),
size: 15,
),
),
],
), ),
), ),
], ],
), ),
), ),
), Spacer(),
Padding( IconButton(
padding: icon: Image.asset(
const EdgeInsets.only(left: 15, top: 10), 'assets/images/edit_pen.png',
color: Colors.black,
),
onPressed: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (_) =>
businessdetailsempty()),
);
},
),
],
),
Align(
alignment: Alignment.topLeft,
child: Padding(
padding: const EdgeInsets.only(left: 5),
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
RichText( Row(
text: TextSpan( children: [
text: "Barbeque Nation ", Padding(
style: TextStyle( padding:
fontFamily: 'Manrope', const EdgeInsets.only(top: 10),
fontStyle: FontStyle.normal, child: RichText(
fontWeight: FontWeight.w600, text: TextSpan(
fontSize: 20, children: [
color: Color(0xFF3D3D3D), WidgetSpan(
child: Image.asset(
'assets/images/call_icon.png',
width: 25,
height: 25,
),
),
TextSpan(
text:
" +91 98651 76796, +91 76786 85869",
style: TextStyle(
fontFamily: 'Manrope',
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w500,
fontSize: 12,
color: Color(0xFF5C5C5C),
),
),
],
),
),
),
],
),
Padding(
padding: const EdgeInsets.only(top: 10),
child: RichText(
text: TextSpan(
children: [
WidgetSpan(
child: Image.asset(
'assets/images/loc_logo.png',
width: 25,
height: 25,
),
),
TextSpan(
text:
" 112, Avinashi Road, Peelamedu, Coimbatore...",
style: TextStyle(
fontFamily: 'Manrope',
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w500,
fontSize: 12,
color: Color(0xFF5C5C5C),
),
),
],
), ),
), ),
), ),
RichText( SizedBox(
text: TextSpan( height: 25,
children: [ ),
TextSpan( InkWell(
text: "0.0 ", onTap: () {
style: TextStyle( Navigator.push(
fontFamily: 'Manrope', context,
fontStyle: FontStyle.normal, MaterialPageRoute(
fontWeight: FontWeight.w400, builder: (_) =>
fontSize: 15, addbusinessdetails(),
color: Color(0xFFFFBE3F),
),
), ),
WidgetSpan( );
child: Icon( },
Icons.star, child: DottedBorder(
color: Color(0xFFFFBE3F), dashPattern: [5, 5, 5, 5],
size: 15, padding: EdgeInsets.all(15),
color: Color(0xff09CD99),
child: Row(
children: [
Text(
'This Business Profile looks incomplete',
style: TextStyle(
fontFamily: 'Manrope',
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w500,
fontSize: 13,
color: Color(0xff09CD99),
),
), ),
), Spacer(),
], Icon(
Icons.arrow_forward_ios_rounded,
color: Color(0xFF09CD99),
size: 20,
),
],
),
), ),
), ),
], ],
), ),
), ),
Spacer(), ),
IconButton( ],
icon: Image.asset( ),
'assets/images/edit_pen.png', ),
color: Colors.black, ),
), ],
onPressed: () { ),
Navigator.push( ),
context, SizedBox(
MaterialPageRoute( height: 35,
builder: (_) => businessdetailsempty()), ),
); Padding(
}, padding: const EdgeInsets.only(left: 20, right: 15),
), child: Column(
], children: [
InkWell(
onTap: () {
Navigator.pop(context);
},
child: Container(
padding: EdgeInsets.all(10),
decoration: BoxDecoration(
borderRadius: BorderRadius.all(
Radius.circular(5),
), ),
Align( ),
alignment: Alignment.topLeft, height: 50,
child: Padding( child: Row(
padding: const EdgeInsets.only(left: 5), mainAxisAlignment: MainAxisAlignment.center,
child: Column( children: [
crossAxisAlignment: CrossAxisAlignment.start, Text(
children: [ 'Add your food items',
Row( style: TextStyle(
children: [ fontFamily: 'Manrope',
Padding( fontStyle: FontStyle.normal,
padding: const EdgeInsets.only(top: 10), fontWeight: FontWeight.w500,
child: RichText( fontSize: 15,
text: TextSpan( color: Color(0xff09CD99),
children: [
WidgetSpan(
child: Image.asset(
'assets/images/call_icon.png',
width: 25,
height: 25,
),
),
TextSpan(
text:
" +91 98651 76796, +91 76786 85869",
style: TextStyle(
fontFamily: 'Manrope',
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w500,
fontSize: 12,
color: Color(0xFF5C5C5C),
),
),
],
),
),
),
],
),
Padding(
padding: const EdgeInsets.only(top: 10),
child: RichText(
text: TextSpan(
children: [
WidgetSpan(
child: Image.asset(
'assets/images/loc_logo.png',
width: 25,
height: 25,
),
),
TextSpan(
text:
" 112, Avinashi Road, Peelamedu, Coimbatore...",
style: TextStyle(
fontFamily: 'Manrope',
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w500,
fontSize: 12,
color: Color(0xFF5C5C5C),
),
),
],
),
),
),
SizedBox(
height: 25,
),
InkWell(
onTap: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (_) => addbusinessdetails(),
),
);
},
child: DottedBorder(
dashPattern: [5, 5, 5, 5],
padding: EdgeInsets.all(15),
color: Color(0xff09CD99),
child: Row(
children: [
Text(
'This Business Profile looks incomplete',
style: TextStyle(
fontFamily: 'Manrope',
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w500,
fontSize: 13,
color: Color(0xff09CD99),
),
),
Spacer(),
Icon(
Icons.arrow_forward_ios_rounded,
color: Color(0xFF09CD99),
size: 20,
),
],
),
),
),
],
), ),
), ),
), Spacer(),
], Icon(
Icons.arrow_forward_ios_rounded,
color: Color(0xFF09CD99),
size: 20,
)
],
),
), ),
), ),
), SizedBox(
], height: 10,
),
InkWell(
onTap: () {
Navigator.pop(context);
},
child: Container(
padding: EdgeInsets.all(10),
decoration: BoxDecoration(
borderRadius: BorderRadius.all(
Radius.circular(5),
),
),
height: 50,
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
'Add your shop photos',
style: TextStyle(
fontFamily: 'Manrope',
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w500,
fontSize: 15,
color: Color(0xff09CD99),
),
),
Spacer(),
Icon(
Icons.arrow_forward_ios_rounded,
color: Color(0xFF09CD99),
size: 20,
)
],
),
),
),
SizedBox(
height: 10,
),
InkWell(
onTap: () {
Navigator.pop(context);
},
child: Container(
padding: EdgeInsets.all(10),
decoration: BoxDecoration(
borderRadius: BorderRadius.all(
Radius.circular(5),
),
),
height: 50,
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
'Add your business services',
style: TextStyle(
fontFamily: 'Manrope',
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w500,
fontSize: 15,
color: Color(0xff09CD99),
),
),
Spacer(),
Icon(
Icons.arrow_forward_ios_rounded,
color: Color(0xFF09CD99),
size: 20,
)
],
),
),
),
SizedBox(
height: 10,
),
InkWell(
onTap: () {
Navigator.pop(context);
},
child: Container(
padding: EdgeInsets.all(10),
decoration: BoxDecoration(
borderRadius: BorderRadius.all(
Radius.circular(5),
),
),
height: 50,
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
'Add your business offers',
style: TextStyle(
fontFamily: 'Manrope',
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w500,
fontSize: 15,
color: Color(0xff09CD99),
),
),
Spacer(),
Icon(
Icons.arrow_forward_ios_rounded,
color: Color(0xFF09CD99),
size: 20,
)
],
),
),
),
SizedBox(
height: 10,
),
InkWell(
onTap: () {
Navigator.pop(context);
},
child: Container(
padding: EdgeInsets.all(10),
decoration: BoxDecoration(
borderRadius: BorderRadius.all(
Radius.circular(5),
),
),
height: 50,
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
'Add your business coupons',
style: TextStyle(
fontFamily: 'Manrope',
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w500,
fontSize: 15,
color: Color(0xff09CD99),
),
),
Spacer(),
Icon(
Icons.arrow_forward_ios_rounded,
color: Color(0xFF09CD99),
size: 20,
)
],
),
),
),
],
),
), ),
), ],
SizedBox( ),
height: 35,
),
Padding(
padding: const EdgeInsets.only(left: 20, right: 15),
child: Column(
children: [
InkWell(
onTap: () {
Navigator.pop(context);
},
child: Container(
padding: EdgeInsets.all(10),
decoration: BoxDecoration(
borderRadius: BorderRadius.all(
Radius.circular(5),
),
),
height: 50,
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
'Add your food items',
style: TextStyle(
fontFamily: 'Manrope',
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w500,
fontSize: 15,
color: Color(0xff09CD99),
),
),
Spacer(),
Icon(
Icons.arrow_forward_ios_rounded,
color: Color(0xFF09CD99),
size: 20,
)
],
),
),
),
SizedBox(
height: 10,
),
InkWell(
onTap: () {
Navigator.pop(context);
},
child: Container(
padding: EdgeInsets.all(10),
decoration: BoxDecoration(
borderRadius: BorderRadius.all(
Radius.circular(5),
),
),
height: 50,
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
'Add your shop photos',
style: TextStyle(
fontFamily: 'Manrope',
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w500,
fontSize: 15,
color: Color(0xff09CD99),
),
),
Spacer(),
Icon(
Icons.arrow_forward_ios_rounded,
color: Color(0xFF09CD99),
size: 20,
)
],
),
),
),
SizedBox(
height: 10,
),
InkWell(
onTap: () {
Navigator.pop(context);
},
child: Container(
padding: EdgeInsets.all(10),
decoration: BoxDecoration(
borderRadius: BorderRadius.all(
Radius.circular(5),
),
),
height: 50,
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
'Add your business services',
style: TextStyle(
fontFamily: 'Manrope',
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w500,
fontSize: 15,
color: Color(0xff09CD99),
),
),
Spacer(),
Icon(
Icons.arrow_forward_ios_rounded,
color: Color(0xFF09CD99),
size: 20,
)
],
),
),
),
SizedBox(
height: 10,
),
InkWell(
onTap: () {
Navigator.pop(context);
},
child: Container(
padding: EdgeInsets.all(10),
decoration: BoxDecoration(
borderRadius: BorderRadius.all(
Radius.circular(5),
),
),
height: 50,
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
'Add your business offers',
style: TextStyle(
fontFamily: 'Manrope',
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w500,
fontSize: 15,
color: Color(0xff09CD99),
),
),
Spacer(),
Icon(
Icons.arrow_forward_ios_rounded,
color: Color(0xFF09CD99),
size: 20,
)
],
),
),
),
SizedBox(
height: 10,
),
InkWell(
onTap: () {
Navigator.pop(context);
},
child: Container(
padding: EdgeInsets.all(10),
decoration: BoxDecoration(
borderRadius: BorderRadius.all(
Radius.circular(5),
),
),
height: 50,
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
'Add your business coupons',
style: TextStyle(
fontFamily: 'Manrope',
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w500,
fontSize: 15,
color: Color(0xff09CD99),
),
),
Spacer(),
Icon(
Icons.arrow_forward_ios_rounded,
color: Color(0xFF09CD99),
size: 20,
)
],
),
),
),
],
),
),
],
), ),
), ),
); );

View File

@ -1,5 +1,7 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import '17-BusinessProfileFormSuccess.dart';
class addbusinessdetails extends StatefulWidget { class addbusinessdetails extends StatefulWidget {
const addbusinessdetails({Key? key}) : super(key: key); const addbusinessdetails({Key? key}) : super(key: key);
@ -8,30 +10,34 @@ class addbusinessdetails extends StatefulWidget {
} }
class _addbusinessdetailsState extends State<addbusinessdetails> { class _addbusinessdetailsState extends State<addbusinessdetails> {
final List<String> items = <String>['All Days', 'Specific days & timing']; var _fields = ['All Days', 'Specific days & timing'];
String selectedItem = 'All Days'; var _currentItemSelected = 'All Days';
bool isVisibile = true; TimeOfDay _TimeofDay = TimeOfDay(hour: 8, minute: 30);
List<DropdownMenuItem<String>> listDrop = []; void _showTimePicker() {
String? selected = null; showTimePicker(
void loadData() { context: context,
listDrop = []; initialTime: TimeOfDay.now(),
listDrop.add(new DropdownMenuItem( ).then((value) {
child: new Text('Item No.1'), setState(() {
value: 'val-1', _TimeofDay = value!;
)); });
listDrop.add(new DropdownMenuItem( });
child: new Text('Item No.2'), }
value: 'val-2',
)); TimeOfDay _TimeofDay1 = TimeOfDay(hour: 8, minute: 30);
listDrop.add(new DropdownMenuItem( void _showTimePicker1() {
child: new Text('Item No.3'), showTimePicker(
value: 'val-3', context: context,
)); initialTime: TimeOfDay.now(),
).then((value) {
setState(() {
_TimeofDay1 = value!;
});
});
} }
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
loadData();
return Scaffold( return Scaffold(
body: SafeArea( body: SafeArea(
child: Column( child: Column(
@ -103,65 +109,177 @@ class _addbusinessdetailsState extends State<addbusinessdetails> {
Row( Row(
children: [ children: [
Expanded( Expanded(
child: InputDecorator( child: DropdownButtonHideUnderline(
decoration: InputDecoration( child: DropdownButton<String>(
contentPadding: EdgeInsets.only( icon: Icon(Icons.keyboard_arrow_down_rounded),
left: 10, top: 1, bottom: 1, right: 5), items: _fields.map((String dropdownStringItem) {
border: OutlineInputBorder( return DropdownMenuItem<String>(
borderRadius: BorderRadius.only( value: dropdownStringItem,
topLeft: Radius.circular(5), child: Text(dropdownStringItem),
bottomLeft: Radius.circular(5), );
), }).toList(),
), onChanged: (value) {},
), value: _currentItemSelected,
child: DropdownButtonHideUnderline(
child: new DropdownButton(
borderRadius: BorderRadius.circular(10),
value: selected,
items: listDrop,
icon: Icon(Icons.keyboard_arrow_down, size: 24),
hint: new Text('Choose...'),
onChanged: (value) {
selected = value as String?;
setState(() => isVisibile = !isVisibile);
},
),
), ),
), ),
), ),
], ],
), ),
Visibility( SizedBox(
visible: isVisibile, height: 10,
child: Row( ),
children: [ Row(
Text( children: [
"From", Text(
style: TextStyle( "From",
fontFamily: "Manrope", style: TextStyle(
fontStyle: FontStyle.normal, fontFamily: "Manrope",
fontWeight: FontWeight.w300, fontStyle: FontStyle.normal,
fontSize: 15, fontWeight: FontWeight.w300,
fontSize: 15,
),
),
SizedBox(
width: 120,
),
Text(
"To",
style: TextStyle(
fontFamily: "Manrope",
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w300,
fontSize: 15,
),
),
],
),
SizedBox(
height: 10,
),
Row(
mainAxisAlignment: MainAxisAlignment.start,
children: [
InkWell(
onTap: () {
_showTimePicker();
},
child: Container(
padding: EdgeInsets.all(10),
alignment: Alignment.centerLeft,
height: 40,
width: 150,
decoration: BoxDecoration(
border: Border.all(
color: Color(0xFFE6E6E6),
),
borderRadius: BorderRadius.only(
topLeft: Radius.circular(5),
bottomLeft: Radius.circular(5),
),
),
child: Row(
children: [
Text(
_TimeofDay.format(context).toString(),
style: TextStyle(
fontFamily: 'Manrope',
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w400,
fontSize: 15,
color: Color(0xFF3D3D3D),
),
),
Spacer(),
Icon(Icons.access_time)
],
), ),
), ),
SizedBox( ),
width: 120, InkWell(
), onTap: () {
Text( _showTimePicker1();
"To", },
style: TextStyle( child: Container(
fontFamily: "Manrope", padding: EdgeInsets.all(10),
fontStyle: FontStyle.normal, alignment: Alignment.centerLeft,
fontWeight: FontWeight.w300, height: 40,
fontSize: 15, width: 150,
decoration: BoxDecoration(
border: Border.all(
color: Color(0xFFE6E6E6),
),
borderRadius: BorderRadius.only(
topRight: Radius.circular(5),
bottomRight: Radius.circular(5),
),
),
child: Row(
children: [
Text(
_TimeofDay1.format(context).toString(),
style: TextStyle(
fontFamily: 'Manrope',
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w400,
fontSize: 15,
color: Color(0xFF3D3D3D),
),
),
Spacer(),
Icon(Icons.access_time)
],
), ),
), ),
], ),
), ],
), ),
], ],
), ),
), ),
Spacer(),
Row(
children: [
Padding(
padding:
const EdgeInsets.only(left: 55, right: 20, bottom: 24),
child: TextButton(
onPressed: () {
Navigator.pop(context);
},
child: Text(
"Cancel",
style: TextStyle(color: Colors.grey.shade600),
),
),
),
SizedBox(
width: 50,
),
Expanded(
child: Padding(
padding:
const EdgeInsets.only(left: 0, right: 24, bottom: 24),
child: MaterialButton(
height: 50,
minWidth: double.infinity,
color: Color(0xff12C193),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(4)),
onPressed: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (_) => profileformsuccess()));
},
child: Text(
'Save',
style: TextStyle(color: Colors.white, fontSize: 15),
),
),
),
),
],
),
], ],
), ),
), ),

View File

@ -0,0 +1,71 @@
import 'package:flutter/material.dart';
import '15_addbusinessdetails.dart';
class profileformsuccess extends StatelessWidget {
const profileformsuccess({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: null,
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Spacer(),
Image.asset('assets/images/success_vector.png',
width: 100, height: 100),
Align(
alignment: Alignment.center,
child: Text(
'Awesome!',
style: TextStyle(
fontFamily: 'Manrope',
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w400,
fontSize: 25,
color: Color(0xFF09CD99),
),
),
),
Text(
'Your business profile completed successfully!',
style: TextStyle(
fontFamily: 'Manrope',
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w400,
fontSize: 15,
color: Color(0xFF333333),
),
),
Spacer(),
Padding(
padding: const EdgeInsets.only(left: 24, right: 24, bottom: 24),
child: MaterialButton(
height: 50,
minWidth: double.infinity,
color: Color(0xFF09CD99),
onPressed: () {
Navigator.push(context,
MaterialPageRoute(builder: (_) => addbusinessdetails()));
},
child: Text(
'Go to Business',
style: TextStyle(
fontFamily: 'Manrope',
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w600,
fontSize: 15,
color: Colors.white),
),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(5),
),
),
),
],
),
),
);
}
}

View File

@ -5,36 +5,30 @@ class page1 extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return Row(
backgroundColor: Colors.transparent, children: [
body: Container( Text(
height: 400, "From",
child: Row( style: TextStyle(
children: [ fontFamily: "Manrope",
Text( fontStyle: FontStyle.normal,
"From", fontWeight: FontWeight.w300,
style: TextStyle( fontSize: 15,
fontFamily: "Manrope", ),
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w300,
fontSize: 15,
),
),
SizedBox(
width: 120,
),
Text(
"To",
style: TextStyle(
fontFamily: "Manrope",
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w300,
fontSize: 15,
),
),
],
), ),
), SizedBox(
width: 120,
),
Text(
"To",
style: TextStyle(
fontFamily: "Manrope",
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w300,
fontSize: 15,
),
),
],
); );
} }
} }