Error Fixing

This commit is contained in:
vignesh 2022-06-03 23:11:07 +05:30
parent b757eac099
commit b7bcc82120
2 changed files with 38 additions and 36 deletions

View File

@ -149,7 +149,7 @@ class _addbusinessState extends State<addbusiness> {
Padding(
padding: const EdgeInsets.only(
left: 24,
top: 5,
top: 15,
right: 24,
),
child: Text(
@ -180,7 +180,7 @@ class _addbusinessState extends State<addbusiness> {
),
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<addbusiness> {
),
),
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<addbusiness> {
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<addbusiness> {
),
),
SizedBox(
height: 50,
height: 45,
),
MaterialButton(
height: 50,

View File

@ -345,6 +345,12 @@ class _businesshomeState extends State<businesshome> {
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<businesshome> {
),
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<businesshome> {
fontFamily: Font,
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w600,
fontSize: TitleText,
fontSize: 16,
color: Colors.white,
),
children: [
@ -388,7 +390,7 @@ class _businesshomeState extends State<businesshome> {
fontFamily: Font,
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w400,
fontSize: HeadText,
fontSize: SubText,
color: Color(0xFFFFBE3F),
),
),
@ -403,17 +405,15 @@ class _businesshomeState extends State<businesshome> {
),
),
),
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<businesshome> {
},
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<businesshome> {
),
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<businesshome> {
fontFamily: Font,
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w600,
fontSize: TitleText,
fontSize: 15,
color: Colors.white,
),
children: [
@ -524,7 +527,7 @@ class _businesshomeState extends State<businesshome> {
fontFamily: Font,
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w400,
fontSize: HeadText,
fontSize: 12,
color: Color(0xFFFFBE3F),
),
),
@ -539,9 +542,7 @@ class _businesshomeState extends State<businesshome> {
),
),
),
SizedBox(
width: 35,
),
Spacer(),
FlutterSwitch(
width: 105,
height: 40,
@ -614,8 +615,15 @@ class _businesshomeState extends State<businesshome> {
},
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<businesshome> {
),
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<businesshome> {
fontFamily: Font,
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w600,
fontSize: TitleText,
fontSize: 15,
color: Colors.white,
),
children: [
@ -660,7 +664,7 @@ class _businesshomeState extends State<businesshome> {
fontFamily: Font,
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w400,
fontSize: HeadText,
fontSize: 12,
color: Color(0xFFFFBE3F),
),
),
@ -675,9 +679,7 @@ class _businesshomeState extends State<businesshome> {
),
),
),
SizedBox(
width: 35,
),
Spacer(),
FlutterSwitch(
width: 105,
height: 40,