Built APK error fixing

This commit is contained in:
vignesh 2022-06-10 00:13:12 +05:30
parent 55bb876545
commit 6ad6ade5f8
6 changed files with 457 additions and 432 deletions

View File

@ -18,14 +18,6 @@ class _businesshomeState extends State<businesshome> {
bool status1 = true; bool status1 = true;
bool status2 = true; bool status2 = true;
int _selectedIndex = 0;
void _onItemTapped(int index) {
setState(() {
_selectedIndex = index;
});
}
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return Scaffold(
@ -324,7 +316,7 @@ class _businesshomeState extends State<businesshome> {
], ],
), ),
Container( Container(
height: 390, height: 400,
child: ListView( child: ListView(
scrollDirection: Axis.vertical, scrollDirection: Axis.vertical,
children: [ children: [
@ -733,48 +725,6 @@ class _businesshomeState extends State<businesshome> {
], ],
), ),
), ),
Spacer(),
BottomNavigationBar(
iconSize: 20,
unselectedFontSize: SubText,
selectedFontSize: SubText,
type: BottomNavigationBarType.fixed,
items: const <BottomNavigationBarItem>[
BottomNavigationBarItem(
icon: ImageIcon(
AssetImage('assets/images/store.png'),
),
label: 'Business',
),
BottomNavigationBarItem(
icon: ImageIcon(
AssetImage('assets/images/messages.png'),
),
label: 'Chat',
),
BottomNavigationBarItem(
icon: ImageIcon(
AssetImage('assets/images/discount.png'),
),
label: 'Offer',
),
BottomNavigationBarItem(
icon: ImageIcon(
AssetImage('assets/images/profile.png'),
),
label: 'Profile',
),
BottomNavigationBarItem(
icon: ImageIcon(
AssetImage('assets/images/setting.png'),
),
label: 'Settings',
),
],
currentIndex: _selectedIndex,
selectedItemColor: primaryColor,
onTap: _onItemTapped,
),
], ],
), ),
); );

View File

@ -1,6 +1,5 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:openclosenew/colors.dart'; import 'package:openclosenew/colors.dart';
import 'package:openclosenew/pages/page_1.dart';
import '17-BusinessProfileFormSuccess.dart'; import '17-BusinessProfileFormSuccess.dart';
import 'FontFamily.dart'; import 'FontFamily.dart';
@ -277,8 +276,10 @@ class _addbusinessdetailsState extends State<addbusinessdetails> {
shape: RoundedRectangleBorder( shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(4)), borderRadius: BorderRadius.circular(4)),
onPressed: () { onPressed: () {
Navigator.push(context, Navigator.push(
MaterialPageRoute(builder: (_) => page1())); context,
MaterialPageRoute(
builder: (_) => profileformsuccess()));
}, },
child: Text( child: Text(
'Save', 'Save',

View File

@ -33,298 +33,350 @@ class _addproductfromState extends State<addproductfrom> {
loadData(); loadData();
return Scaffold( return Scaffold(
body: SafeArea( body: SafeArea(
child: Column( child: SingleChildScrollView(
crossAxisAlignment: CrossAxisAlignment.start, child: Column(
children: [ crossAxisAlignment: CrossAxisAlignment.start,
Padding( children: [
padding: const EdgeInsets.only(left: 10), Padding(
child: Row( padding: const EdgeInsets.only(left: 10),
children: [ child: Row(
IconButton( children: [
icon: Icon(Icons.arrow_back, size: 24), IconButton(
onPressed: () { icon: Icon(Icons.arrow_back, size: 24),
Navigator.pop(context);
},
),
SizedBox(
width: 20,
),
Text(
'Add Business Detail',
style: TextStyle(
fontSize: HeadText,
color: DarkGray,
fontFamily: Font,
),
),
],
),
),
Padding(
padding: const EdgeInsets.only(left: 25, top: 20, right: 20),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'Item Name',
style: TextStyle(
fontFamily: Font,
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w300,
fontSize: HeadText,
color: DarkGray,
),
),
SizedBox(
height: 20,
),
TextField(
decoration: InputDecoration(
contentPadding:
EdgeInsets.only(left: 10, top: 10, bottom: 10),
border: OutlineInputBorder(
borderRadius: BorderRadius.circular(5)),
hintText: 'Type here...',
),
),
SizedBox(
height: 20,
),
Text(
'Category',
style: TextStyle(
fontFamily: Font,
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w300,
fontSize: HeadText,
color: DarkGray,
),
),
],
),
),
SizedBox(
height: 20,
),
Padding(
padding: const EdgeInsets.only(left: 25, right: 20),
child: Expanded(
child: InputDecorator(
decoration: InputDecoration(
contentPadding:
EdgeInsets.only(left: 10, top: 1, bottom: 1, right: 5),
border: OutlineInputBorder(
borderRadius: BorderRadius.all(Radius.circular(5)),
),
),
child: DropdownButtonHideUnderline(
child: new DropdownButton(
borderRadius: BorderRadius.circular(5),
value: selected,
items: listDrop,
icon: Icon(Icons.keyboard_arrow_down, size: 24),
hint: new Text('Choose...'),
onChanged: (value) {
selected = value as String?;
setState(() {});
},
),
),
),
),
),
SizedBox(
height: 20,
),
Padding(
padding: const EdgeInsets.only(left: 25),
child: Text(
'Price',
style: TextStyle(
fontFamily: Font,
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w300,
fontSize: HeadText,
color: DarkGray,
),
),
),
SizedBox(
height: 20,
),
Padding(
padding: const EdgeInsets.only(left: 25, right: 20),
child: TextField(
keyboardType: TextInputType.number,
decoration: InputDecoration(
prefixIcon: Image.asset(
'assets/images/dollor.png',
width: 10,
height: 10,
),
contentPadding:
EdgeInsets.only(left: 10, top: 10, bottom: 10),
border: OutlineInputBorder(
borderRadius: BorderRadius.circular(5),
),
hintText: '00.00',
),
),
),
SizedBox(
height: 20,
),
Padding(
padding: const EdgeInsets.only(left: 25),
child: Text(
'Upload photo',
style: TextStyle(
fontFamily: Font,
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w300,
fontSize: HeadText,
color: DarkGray,
),
),
),
InkWell(
onTap: () {
showModalBottomSheet<void>(
context: context,
builder: (BuildContext context) {
return Container(
height: 200,
color: Colors.white,
child: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.start,
children: <Widget>[
SizedBox(
height: 20,
),
Text(
"Choose You Image",
style: TextStyle(
fontSize: 20,
fontFamily: Font,
fontStyle: FontStyle.normal,
fontWeight: FontWeight.bold),
),
SizedBox(height: 30),
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
IconButton(
onPressed: () {},
icon: Icon(Icons.camera),
iconSize: 30,
),
Text(
'Camera',
style: TextStyle(
fontSize: 15,
fontFamily: Font,
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w300,
color: Color(0xFF333333),
),
),
SizedBox(
width: 50,
),
IconButton(
onPressed: () {},
icon: Icon(Icons.image_rounded),
iconSize: 30,
),
Text(
'Gallery',
style: TextStyle(
fontSize: 15,
fontFamily: Font,
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w300,
color: Color(0xFF333333),
),
),
],
)
],
),
),
);
},
);
},
child: Padding(
padding: const EdgeInsets.only(left: 25, top: 5),
child: DottedBorder(
padding: EdgeInsets.all(45),
dashPattern: [4, 4, 4, 4],
radius: Radius.circular(10),
color: primaryColor,
child: Image.asset(
'assets/images/insert_logo.png',
width: 30,
height: 30,
color: primaryColor,
),
),
),
),
Spacer(),
Row(
children: [
Expanded(
child: Padding(
padding: const EdgeInsets.only(left: 24, bottom: 24),
child: MaterialButton(
height: 50,
minWidth: double.infinity,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(4)),
onPressed: () { onPressed: () {
Navigator.pop(context); Navigator.pop(context);
}, },
child: Text( ),
"Cancel", SizedBox(
style: TextStyle( width: 20,
color: Gray, ),
fontFamily: Font, Text(
'Add Business Detail',
style: TextStyle(
fontSize: HeadText,
color: DarkGray,
fontFamily: Font,
),
),
],
),
),
Row(
children: [
Expanded(
child: Padding(
padding: const EdgeInsets.only(left: 24, bottom: 24),
child: MaterialButton(
height: 50,
minWidth: double.infinity,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(4)),
onPressed: () {
Navigator.pop(context);
},
child: Text(
"Cancel",
style: TextStyle(
color: Gray,
fontFamily: Font,
),
), ),
), ),
), ),
), ),
Expanded(
child: Padding(
padding: const EdgeInsets.only(right: 24, bottom: 24),
child: MaterialButton(
height: 50,
minWidth: double.infinity,
color: primaryColor,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(4)),
onPressed: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (_) => businessdetail()));
},
child: Text(
'Save',
style: TextStyle(
color: White,
fontSize: HeadText,
fontFamily: Font,
),
),
),
),
),
],
),
Padding(
padding: const EdgeInsets.only(left: 25, top: 15, right: 20),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'Item Name',
style: TextStyle(
fontFamily: Font,
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w300,
fontSize: HeadText,
color: DarkGray,
),
),
SizedBox(
height: 20,
),
TextField(
decoration: InputDecoration(
contentPadding:
EdgeInsets.only(left: 10, top: 10, bottom: 10),
border: OutlineInputBorder(
borderRadius: BorderRadius.circular(5)),
hintText: 'Type here...',
),
),
SizedBox(
height: 20,
),
Text(
'Category',
style: TextStyle(
fontFamily: Font,
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w300,
fontSize: HeadText,
color: DarkGray,
),
),
],
), ),
Expanded( ),
child: Padding( SizedBox(
padding: const EdgeInsets.only(right: 24, bottom: 24), height: 20,
child: MaterialButton( ),
height: 50, Padding(
minWidth: double.infinity, padding: const EdgeInsets.only(left: 25, right: 20),
child: Expanded(
child: InputDecorator(
decoration: InputDecoration(
contentPadding: EdgeInsets.only(
left: 10, top: 1, bottom: 1, right: 5),
border: OutlineInputBorder(
borderRadius: BorderRadius.all(Radius.circular(5)),
),
),
child: DropdownButtonHideUnderline(
child: new DropdownButton(
borderRadius: BorderRadius.circular(5),
value: selected,
items: listDrop,
icon: Icon(Icons.keyboard_arrow_down, size: 24),
hint: new Text('Choose...'),
onChanged: (value) {
selected = value as String?;
setState(() {});
},
),
),
),
),
),
SizedBox(
height: 20,
),
Padding(
padding: const EdgeInsets.only(left: 25),
child: Text(
'Price',
style: TextStyle(
fontFamily: Font,
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w300,
fontSize: HeadText,
color: DarkGray,
),
),
),
SizedBox(
height: 20,
),
Padding(
padding: const EdgeInsets.only(left: 25, right: 20),
child: TextField(
keyboardType: TextInputType.number,
decoration: InputDecoration(
prefixIcon: Image.asset(
'assets/images/dollor.png',
width: 10,
height: 10,
),
contentPadding:
EdgeInsets.only(left: 10, top: 10, bottom: 10),
border: OutlineInputBorder(
borderRadius: BorderRadius.circular(5),
),
hintText: '00.00',
),
),
),
SizedBox(
height: 20,
),
Padding(
padding: const EdgeInsets.only(left: 25),
child: Text(
'Upload photo',
style: TextStyle(
fontFamily: Font,
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w300,
fontSize: HeadText,
color: DarkGray,
),
),
),
InkWell(
onTap: () {
showModalBottomSheet<void>(
context: context,
builder: (BuildContext context) {
return Container(
height: 200,
color: Colors.white,
child: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.start,
children: <Widget>[
SizedBox(
height: 20,
),
Text(
"Choose You Image",
style: TextStyle(
fontSize: 20,
fontFamily: Font,
fontStyle: FontStyle.normal,
fontWeight: FontWeight.bold),
),
SizedBox(height: 30),
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
IconButton(
onPressed: () {},
icon: Icon(Icons.camera),
iconSize: 30,
),
Text(
'Camera',
style: TextStyle(
fontSize: 15,
fontFamily: Font,
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w300,
color: Color(0xFF333333),
),
),
SizedBox(
width: 50,
),
IconButton(
onPressed: () {},
icon: Icon(Icons.image_rounded),
iconSize: 30,
),
Text(
'Gallery',
style: TextStyle(
fontSize: 15,
fontFamily: Font,
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w300,
color: Color(0xFF333333),
),
),
],
)
],
),
),
);
},
);
},
child: Padding(
padding: const EdgeInsets.only(left: 25, top: 5),
child: DottedBorder(
padding: EdgeInsets.all(45),
dashPattern: [4, 4, 4, 4],
radius: Radius.circular(10),
color: primaryColor,
child: Image.asset(
'assets/images/insert_logo.png',
width: 30,
height: 30,
color: primaryColor, color: primaryColor,
shape: RoundedRectangleBorder( ),
borderRadius: BorderRadius.circular(4)), ),
onPressed: () { ),
Navigator.push( ),
context, Row(
MaterialPageRoute( children: [
builder: (_) => businessdetail())); Expanded(
}, child: Padding(
child: Text( padding: const EdgeInsets.only(left: 24, bottom: 24),
'Save', child: MaterialButton(
style: TextStyle( height: 50,
color: White, minWidth: double.infinity,
fontSize: HeadText, shape: RoundedRectangleBorder(
fontFamily: Font, borderRadius: BorderRadius.circular(4)),
onPressed: () {
Navigator.pop(context);
},
child: Text(
"Cancel",
style: TextStyle(
color: Gray,
fontFamily: Font,
),
), ),
), ),
), ),
), ),
), Expanded(
], child: Padding(
), padding: const EdgeInsets.only(right: 24, bottom: 24),
], child: MaterialButton(
height: 50,
minWidth: double.infinity,
color: primaryColor,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(4)),
onPressed: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (_) => businessdetail()));
},
child: Text(
'Save',
style: TextStyle(
color: White,
fontSize: HeadText,
fontFamily: Font,
),
),
),
),
),
],
),
],
),
), ),
), ),
); );

View File

@ -0,0 +1,72 @@
import 'package:flutter/material.dart';
import 'package:openclosenew/11_busiesshome.dart';
import 'businessempty.dart';
import 'colors.dart';
import 'fontsize.dart';
class bottomnavigation extends StatefulWidget {
const bottomnavigation({Key? key}) : super(key: key);
@override
State<bottomnavigation> createState() => _bottomnavigationState();
}
class _bottomnavigationState extends State<bottomnavigation> {
int _selectedIndex = 0;
final screens = [
businessempty(),
Scaffold(),
Scaffold(),
Scaffold(),
Scaffold(),
];
@override
Widget build(BuildContext context) {
return Scaffold(
body: screens[_selectedIndex],
bottomNavigationBar: BottomNavigationBar(
iconSize: 20,
unselectedFontSize: SubText,
selectedFontSize: SubText,
type: BottomNavigationBarType.fixed,
items: const [
BottomNavigationBarItem(
icon: ImageIcon(
AssetImage('assets/images/store.png'),
),
label: 'Business',
),
BottomNavigationBarItem(
icon: ImageIcon(
AssetImage('assets/images/messages.png'),
),
label: 'Chat',
),
BottomNavigationBarItem(
icon: ImageIcon(
AssetImage('assets/images/discount.png'),
),
label: 'Offer',
),
BottomNavigationBarItem(
icon: ImageIcon(
AssetImage('assets/images/profile.png'),
),
label: 'Profile',
),
BottomNavigationBarItem(
icon: ImageIcon(
AssetImage('assets/images/setting.png'),
),
label: 'Settings',
),
],
currentIndex: _selectedIndex,
selectedItemColor: primaryColor,
onTap: (screens) => setState(() => this._selectedIndex = screens),
),
);
}
}

View File

@ -1,7 +1,7 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:openclosenew/businessempty.dart';
import 'package:openclosenew/colors.dart'; import 'package:openclosenew/colors.dart';
import 'BottomNavigation.dart';
import 'FontFamily.dart'; import 'FontFamily.dart';
import 'fontsize.dart'; import 'fontsize.dart';
@ -52,7 +52,7 @@ class businessaddedsuccess extends StatelessWidget {
borderRadius: BorderRadius.circular(4)), borderRadius: BorderRadius.circular(4)),
onPressed: () { onPressed: () {
Navigator.push(context, Navigator.push(context,
MaterialPageRoute(builder: (_) => businessempty())); MaterialPageRoute(builder: (_) => bottomnavigation()));
}, },
child: Text( child: Text(
'Lets Explore', 'Lets Explore',

View File

@ -14,22 +14,14 @@ class businessempty extends StatefulWidget {
} }
class _businessemptyState extends State<businessempty> { class _businessemptyState extends State<businessempty> {
int _selectedIndex = 0;
void _onItemTapped(int index) {
setState(() {
_selectedIndex = index;
});
}
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return Scaffold(
backgroundColor: Colors.white, backgroundColor: Colors.white,
body: Column( body: SafeArea(
children: [ child: Column(
SafeArea( children: [
child: Row( Row(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
@ -82,94 +74,52 @@ class _businessemptyState extends State<businessempty> {
), ),
], ],
), ),
), Spacer(),
Spacer(), Column(
Column( crossAxisAlignment: CrossAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center, children: [
mainAxisAlignment: MainAxisAlignment.center, DottedBorder(
children: [ dashPattern: [5, 5, 5, 5],
DottedBorder( color: primaryColor,
dashPattern: [5, 5, 5, 5], padding: EdgeInsets.all(5),
color: primaryColor, radius: Radius.circular(6),
padding: EdgeInsets.all(5), child: Container(
radius: Radius.circular(6), height: 100,
child: Container( width: 330,
height: 100, child: Column(
width: 330, mainAxisAlignment: MainAxisAlignment.center,
child: Column( children: [
mainAxisAlignment: MainAxisAlignment.center, IconButton(
children: [ icon: Image.asset(
IconButton( 'assets/images/shop.png',
icon: Image.asset( color: primaryColor,
'assets/images/shop.png', ),
color: primaryColor, onPressed: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (_) => businesshome()));
},
), ),
onPressed: () { Text(
Navigator.push( 'Add your Business',
context, style: TextStyle(
MaterialPageRoute( fontFamily: Font,
builder: (_) => businesshome())); fontStyle: FontStyle.normal,
}, fontWeight: FontWeight.w400,
), fontSize: HeadText,
Text( color: primaryColor,
'Add your Business', ),
style: TextStyle( )
fontFamily: Font, ],
fontStyle: FontStyle.normal, ),
fontWeight: FontWeight.w400,
fontSize: HeadText,
color: primaryColor,
),
)
],
), ),
), ),
), ],
], ),
), Spacer(),
Spacer(), ],
BottomNavigationBar( ),
iconSize: 20,
unselectedFontSize: SubText,
selectedFontSize: SubText,
type: BottomNavigationBarType.fixed,
items: const <BottomNavigationBarItem>[
BottomNavigationBarItem(
icon: ImageIcon(
AssetImage('assets/images/store.png'),
),
label: 'Business',
),
BottomNavigationBarItem(
icon: ImageIcon(
AssetImage('assets/images/messages.png'),
),
label: 'Chat',
),
BottomNavigationBarItem(
icon: ImageIcon(
AssetImage('assets/images/discount.png'),
),
label: 'Offer',
),
BottomNavigationBarItem(
icon: ImageIcon(
AssetImage('assets/images/profile.png'),
),
label: 'Profile',
),
BottomNavigationBarItem(
icon: ImageIcon(
AssetImage('assets/images/setting.png'),
),
label: 'Settings',
),
],
currentIndex: _selectedIndex,
selectedItemColor: primaryColor,
onTap: _onItemTapped,
),
],
), ),
); );
} }