diff --git a/openclosenew/assets/images/success_vector.png b/openclosenew/assets/images/success_vector.png new file mode 100644 index 0000000..e32852c Binary files /dev/null and b/openclosenew/assets/images/success_vector.png differ diff --git a/openclosenew/lib/14_businessdetailsempty.dart b/openclosenew/lib/14_businessdetailsempty.dart index da19daa..6853d20 100644 --- a/openclosenew/lib/14_businessdetailsempty.dart +++ b/openclosenew/lib/14_businessdetailsempty.dart @@ -17,513 +17,521 @@ class _businessdetailsemptyState extends State { Widget build(BuildContext context) { return Scaffold( body: SafeArea( - child: Column( - children: [ - Container( - height: 400, - child: Stack( - children: [ - Container( - 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) + child: SingleChildScrollView( + child: Column( + children: [ + Container( + height: 400, + child: Stack( + children: [ Container( height: 250, decoration: BoxDecoration( - color: Colors.grey.withOpacity(0.5), + image: const DecorationImage( + image: AssetImage('assets/images/bg.png'), + fit: BoxFit.cover, + ), borderRadius: BorderRadius.only( bottomLeft: Radius.circular(20), bottomRight: Radius.circular(20), ), ), ), - Padding( - padding: EdgeInsets.only(left: 10, right: 10, bottom: 300), - child: Row( - children: [ - FloatingActionButton( - child: Icon( - Icons.arrow_back, - size: 24, - color: Color(0xFF3D3D3D), + if (status == false) + Container( + height: 250, + decoration: BoxDecoration( + color: Colors.grey.withOpacity(0.5), + borderRadius: BorderRadius.only( + bottomLeft: Radius.circular(20), + bottomRight: Radius.circular(20), ), - 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), - ), - ], - ), - ), - Align( - alignment: Alignment.center, - child: Container( - margin: EdgeInsets.only(right: 20, left: 20, top: 150), - padding: EdgeInsets.all(12), - height: 270, - decoration: BoxDecoration( - color: Colors.white, - borderRadius: BorderRadius.all( - Radius.circular(10), - ), - boxShadow: [ - BoxShadow( - color: Colors.grey.shade500, - offset: Offset(4.0, 4.0), - blurRadius: 10.0, - spreadRadius: 1.0, + ), + Padding( + padding: + EdgeInsets.only(left: 10, right: 10, bottom: 300), + child: Row( + 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), ), ], ), - 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); - }, + ), + Align( + alignment: Alignment.center, + child: Container( + margin: EdgeInsets.only(right: 20, left: 20, top: 150), + padding: EdgeInsets.all(12), + height: 270, + decoration: BoxDecoration( + color: Colors.white, + borderRadius: BorderRadius.all( + Radius.circular(10), + ), + boxShadow: [ + BoxShadow( + color: Colors.grey.shade500, + 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( + crossAxisAlignment: + CrossAxisAlignment.start, children: [ - Image.asset( - 'assets/images/insert_logo.png', - width: 30, - height: 30, + RichText( + text: TextSpan( + text: "Barbeque Nation ", + style: TextStyle( + fontFamily: 'Manrope', + fontStyle: FontStyle.normal, + fontWeight: FontWeight.w600, + fontSize: 20, + color: Color(0xFF3D3D3D), + ), + ), ), - Text( - "LOGO", - style: TextStyle( - fontFamily: "Manrope", - fontStyle: FontStyle.normal, - fontWeight: FontWeight.w600, - letterSpacing: 0.25, - color: Color(0xFF5C5C5C), + RichText( + text: TextSpan( + children: [ + TextSpan( + text: "0.0 ", + style: TextStyle( + fontFamily: 'Manrope', + fontStyle: FontStyle.normal, + fontWeight: FontWeight.w400, + fontSize: 15, + color: Color(0xFFFFBE3F), + ), + ), + WidgetSpan( + child: Icon( + Icons.star, + color: Color(0xFFFFBE3F), + size: 15, + ), + ), + ], ), ), ], ), ), - ), - Padding( - padding: - const EdgeInsets.only(left: 15, top: 10), + Spacer(), + IconButton( + icon: Image.asset( + '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( crossAxisAlignment: CrossAxisAlignment.start, children: [ - RichText( - text: TextSpan( - text: "Barbeque Nation ", - style: TextStyle( - fontFamily: 'Manrope', - fontStyle: FontStyle.normal, - fontWeight: FontWeight.w600, - fontSize: 20, - color: Color(0xFF3D3D3D), + Row( + children: [ + Padding( + padding: + const EdgeInsets.only(top: 10), + child: RichText( + text: TextSpan( + 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), + ), + ), + ], ), ), ), - RichText( - text: TextSpan( - children: [ - TextSpan( - text: "0.0 ", - style: TextStyle( - fontFamily: 'Manrope', - fontStyle: FontStyle.normal, - fontWeight: FontWeight.w400, - fontSize: 15, - color: Color(0xFFFFBE3F), - ), + SizedBox( + height: 25, + ), + InkWell( + onTap: () { + Navigator.push( + context, + MaterialPageRoute( + builder: (_) => + addbusinessdetails(), ), - WidgetSpan( - child: Icon( - Icons.star, - color: Color(0xFFFFBE3F), - size: 15, + ); + }, + 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(), - IconButton( - icon: Image.asset( - 'assets/images/edit_pen.png', - color: Colors.black, - ), - onPressed: () { - Navigator.push( - context, - MaterialPageRoute( - builder: (_) => businessdetailsempty()), - ); - }, - ), - ], + ), + ], + ), + ), + ), + ], + ), + ), + 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), ), - Align( - alignment: Alignment.topLeft, - child: Padding( - padding: const EdgeInsets.only(left: 5), - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Row( - children: [ - Padding( - padding: const EdgeInsets.only(top: 10), - child: RichText( - text: TextSpan( - 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, - ), - ], - ), - ), - ), - ], + ), + 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, + ) + ], + ), + ), + ), + ], + ), ), - ), - 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, - ) - ], - ), - ), - ), - ], - ), - ), - ], + ], + ), ), ), ); diff --git a/openclosenew/lib/15_addbusinessdetails.dart b/openclosenew/lib/15_addbusinessdetails.dart index eefd593..a3547e3 100644 --- a/openclosenew/lib/15_addbusinessdetails.dart +++ b/openclosenew/lib/15_addbusinessdetails.dart @@ -1,5 +1,7 @@ import 'package:flutter/material.dart'; +import '17-BusinessProfileFormSuccess.dart'; + class addbusinessdetails extends StatefulWidget { const addbusinessdetails({Key? key}) : super(key: key); @@ -8,30 +10,34 @@ class addbusinessdetails extends StatefulWidget { } class _addbusinessdetailsState extends State { - final List items = ['All Days', 'Specific days & timing']; - String selectedItem = 'All Days'; - bool isVisibile = true; - List> listDrop = []; - String? selected = null; - void loadData() { - listDrop = []; - listDrop.add(new DropdownMenuItem( - child: new Text('Item No.1'), - value: 'val-1', - )); - listDrop.add(new DropdownMenuItem( - child: new Text('Item No.2'), - value: 'val-2', - )); - listDrop.add(new DropdownMenuItem( - child: new Text('Item No.3'), - value: 'val-3', - )); + var _fields = ['All Days', 'Specific days & timing']; + var _currentItemSelected = 'All Days'; + TimeOfDay _TimeofDay = TimeOfDay(hour: 8, minute: 30); + void _showTimePicker() { + showTimePicker( + context: context, + initialTime: TimeOfDay.now(), + ).then((value) { + setState(() { + _TimeofDay = value!; + }); + }); + } + + TimeOfDay _TimeofDay1 = TimeOfDay(hour: 8, minute: 30); + void _showTimePicker1() { + showTimePicker( + context: context, + initialTime: TimeOfDay.now(), + ).then((value) { + setState(() { + _TimeofDay1 = value!; + }); + }); } @override Widget build(BuildContext context) { - loadData(); return Scaffold( body: SafeArea( child: Column( @@ -103,65 +109,177 @@ class _addbusinessdetailsState extends State { Row( children: [ Expanded( - child: InputDecorator( - decoration: InputDecoration( - contentPadding: EdgeInsets.only( - left: 10, top: 1, bottom: 1, right: 5), - border: OutlineInputBorder( - borderRadius: BorderRadius.only( - topLeft: Radius.circular(5), - bottomLeft: Radius.circular(5), - ), - ), - ), - 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); - }, - ), + child: DropdownButtonHideUnderline( + child: DropdownButton( + icon: Icon(Icons.keyboard_arrow_down_rounded), + items: _fields.map((String dropdownStringItem) { + return DropdownMenuItem( + value: dropdownStringItem, + child: Text(dropdownStringItem), + ); + }).toList(), + onChanged: (value) {}, + value: _currentItemSelected, ), ), ), ], ), - Visibility( - visible: isVisibile, - child: Row( - children: [ - Text( - "From", - style: TextStyle( - fontFamily: "Manrope", - fontStyle: FontStyle.normal, - fontWeight: FontWeight.w300, - fontSize: 15, + SizedBox( + height: 10, + ), + Row( + children: [ + Text( + "From", + 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, + ), + ), + ], + ), + 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, - ), - Text( - "To", - style: TextStyle( - fontFamily: "Manrope", - fontStyle: FontStyle.normal, - fontWeight: FontWeight.w300, - fontSize: 15, + ), + InkWell( + onTap: () { + _showTimePicker1(); + }, + child: Container( + padding: EdgeInsets.all(10), + alignment: Alignment.centerLeft, + height: 40, + 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), + ), + ), + ), + ), + ], + ), ], ), ), diff --git a/openclosenew/lib/17-BusinessProfileFormSuccess.dart b/openclosenew/lib/17-BusinessProfileFormSuccess.dart new file mode 100644 index 0000000..f1f27dc --- /dev/null +++ b/openclosenew/lib/17-BusinessProfileFormSuccess.dart @@ -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), + ), + ), + ), + ], + ), + ), + ); + } +} diff --git a/openclosenew/lib/pages/page_1.dart b/openclosenew/lib/pages/page_1.dart index a616389..34a97f3 100644 --- a/openclosenew/lib/pages/page_1.dart +++ b/openclosenew/lib/pages/page_1.dart @@ -5,36 +5,30 @@ class page1 extends StatelessWidget { @override Widget build(BuildContext context) { - return Scaffold( - backgroundColor: Colors.transparent, - body: Container( - height: 400, - child: Row( - children: [ - Text( - "From", - 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, - ), - ), - ], + return Row( + children: [ + Text( + "From", + 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, + ), + ), + ], ); } }