From b7bcc821209e9e04935c39c483aaf3ae4d46e3b1 Mon Sep 17 00:00:00 2001 From: vignesh Date: Fri, 3 Jun 2022 23:11:07 +0530 Subject: [PATCH] Error Fixing --- openclosenew/lib/07_addbusiness.dart | 10 ++--- openclosenew/lib/11_busiesshome.dart | 64 ++++++++++++++-------------- 2 files changed, 38 insertions(+), 36 deletions(-) diff --git a/openclosenew/lib/07_addbusiness.dart b/openclosenew/lib/07_addbusiness.dart index 8812eaa..48387e5 100644 --- a/openclosenew/lib/07_addbusiness.dart +++ b/openclosenew/lib/07_addbusiness.dart @@ -149,7 +149,7 @@ class _addbusinessState extends State { Padding( padding: const EdgeInsets.only( left: 24, - top: 5, + top: 15, right: 24, ), child: Text( @@ -180,7 +180,7 @@ class _addbusinessState extends State { ), Padding( padding: - const EdgeInsets.only(left: 24, top: 5, right: 24), + const EdgeInsets.only(left: 24, top: 15, right: 24), child: Text( 'Tell about your business...', style: TextStyle( @@ -209,7 +209,7 @@ class _addbusinessState extends State { ), ), Padding( - padding: const EdgeInsets.only(top: 5), + padding: const EdgeInsets.only(top: 15), child: Row( children: [ SizedBox( @@ -310,7 +310,7 @@ class _addbusinessState extends State { mainAxisAlignment: MainAxisAlignment.center, children: [ Padding( - padding: const EdgeInsets.only(left: 28), + padding: const EdgeInsets.only(left: 28, top: 15), child: Text( 'Address', style: TextStyle( @@ -348,7 +348,7 @@ class _addbusinessState extends State { ), ), SizedBox( - height: 50, + height: 45, ), MaterialButton( height: 50, diff --git a/openclosenew/lib/11_busiesshome.dart b/openclosenew/lib/11_busiesshome.dart index c616a7f..c48d3f7 100644 --- a/openclosenew/lib/11_busiesshome.dart +++ b/openclosenew/lib/11_busiesshome.dart @@ -345,6 +345,12 @@ class _businesshomeState extends State { margin: EdgeInsets.only(right: 15), decoration: BoxDecoration( borderRadius: BorderRadius.all(Radius.circular(5)), + image: new DecorationImage( + image: ExactAssetImage( + 'assets/images/bg.png', + ), + fit: BoxFit.cover, + ), ), foregroundDecoration: BoxDecoration( color: status ? null : Colors.white, @@ -353,10 +359,6 @@ class _businesshomeState extends State { ), child: Stack( children: [ - Image.asset( - 'assets/images/bg.png', - height: 250, - ), Column( crossAxisAlignment: CrossAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.center, @@ -378,7 +380,7 @@ class _businesshomeState extends State { fontFamily: Font, fontStyle: FontStyle.normal, fontWeight: FontWeight.w600, - fontSize: TitleText, + fontSize: 16, color: Colors.white, ), children: [ @@ -388,7 +390,7 @@ class _businesshomeState extends State { fontFamily: Font, fontStyle: FontStyle.normal, fontWeight: FontWeight.w400, - fontSize: HeadText, + fontSize: SubText, color: Color(0xFFFFBE3F), ), ), @@ -403,17 +405,15 @@ class _businesshomeState extends State { ), ), ), - SizedBox( - width: 35, - ), + Spacer(), FlutterSwitch( - width: 105, + width: 95, height: 40, valueFontSize: HeadText, - toggleSize: 25, + toggleSize: 20, value: status, - borderRadius: 30.0, - padding: 8.0, + borderRadius: 20.0, + padding: 5.0, showOnOff: true, onToggle: (val) { setState(() { @@ -478,8 +478,15 @@ class _businesshomeState extends State { }, child: Container( height: 200, + width: double.infinity, margin: EdgeInsets.only(right: 15, top: 10), decoration: BoxDecoration( + image: new DecorationImage( + image: ExactAssetImage( + 'assets/images/bg.png', + ), + fit: BoxFit.cover, + ), borderRadius: BorderRadius.all(Radius.circular(5)), ), foregroundDecoration: BoxDecoration( @@ -489,10 +496,6 @@ class _businesshomeState extends State { ), child: Stack( children: [ - Image.asset( - 'assets/images/bg.png', - height: 250, - ), Column( crossAxisAlignment: CrossAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.center, @@ -514,7 +517,7 @@ class _businesshomeState extends State { fontFamily: Font, fontStyle: FontStyle.normal, fontWeight: FontWeight.w600, - fontSize: TitleText, + fontSize: 15, color: Colors.white, ), children: [ @@ -524,7 +527,7 @@ class _businesshomeState extends State { fontFamily: Font, fontStyle: FontStyle.normal, fontWeight: FontWeight.w400, - fontSize: HeadText, + fontSize: 12, color: Color(0xFFFFBE3F), ), ), @@ -539,9 +542,7 @@ class _businesshomeState extends State { ), ), ), - SizedBox( - width: 35, - ), + Spacer(), FlutterSwitch( width: 105, height: 40, @@ -614,8 +615,15 @@ class _businesshomeState extends State { }, child: Container( height: 200, + width: double.infinity, margin: EdgeInsets.only(right: 15, top: 10), decoration: BoxDecoration( + image: new DecorationImage( + image: ExactAssetImage( + 'assets/images/bg.png', + ), + fit: BoxFit.cover, + ), borderRadius: BorderRadius.all(Radius.circular(5)), ), foregroundDecoration: BoxDecoration( @@ -625,10 +633,6 @@ class _businesshomeState extends State { ), child: Stack( children: [ - Image.asset( - 'assets/images/bg.png', - height: 250, - ), Column( crossAxisAlignment: CrossAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.center, @@ -650,7 +654,7 @@ class _businesshomeState extends State { fontFamily: Font, fontStyle: FontStyle.normal, fontWeight: FontWeight.w600, - fontSize: TitleText, + fontSize: 15, color: Colors.white, ), children: [ @@ -660,7 +664,7 @@ class _businesshomeState extends State { fontFamily: Font, fontStyle: FontStyle.normal, fontWeight: FontWeight.w400, - fontSize: HeadText, + fontSize: 12, color: Color(0xFFFFBE3F), ), ), @@ -675,9 +679,7 @@ class _businesshomeState extends State { ), ), ), - SizedBox( - width: 35, - ), + Spacer(), FlutterSwitch( width: 105, height: 40,