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 status2 = true;
int _selectedIndex = 0;
void _onItemTapped(int index) {
setState(() {
_selectedIndex = index;
});
}
@override
Widget build(BuildContext context) {
return Scaffold(
@ -324,7 +316,7 @@ class _businesshomeState extends State<businesshome> {
],
),
Container(
height: 390,
height: 400,
child: ListView(
scrollDirection: Axis.vertical,
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:openclosenew/colors.dart';
import 'package:openclosenew/pages/page_1.dart';
import '17-BusinessProfileFormSuccess.dart';
import 'FontFamily.dart';
@ -277,8 +276,10 @@ class _addbusinessdetailsState extends State<addbusinessdetails> {
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(4)),
onPressed: () {
Navigator.push(context,
MaterialPageRoute(builder: (_) => page1()));
Navigator.push(
context,
MaterialPageRoute(
builder: (_) => profileformsuccess()));
},
child: Text(
'Save',

View File

@ -33,6 +33,7 @@ class _addproductfromState extends State<addproductfrom> {
loadData();
return Scaffold(
body: SafeArea(
child: SingleChildScrollView(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
@ -60,8 +61,59 @@ class _addproductfromState extends State<addproductfrom> {
],
),
),
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: 20, right: 20),
padding: const EdgeInsets.only(left: 25, top: 15, right: 20),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
@ -111,8 +163,8 @@ class _addproductfromState extends State<addproductfrom> {
child: Expanded(
child: InputDecorator(
decoration: InputDecoration(
contentPadding:
EdgeInsets.only(left: 10, top: 1, bottom: 1, right: 5),
contentPadding: EdgeInsets.only(
left: 10, top: 1, bottom: 1, right: 5),
border: OutlineInputBorder(
borderRadius: BorderRadius.all(Radius.circular(5)),
),
@ -272,7 +324,6 @@ class _addproductfromState extends State<addproductfrom> {
),
),
),
Spacer(),
Row(
children: [
Expanded(
@ -327,6 +378,7 @@ class _addproductfromState extends State<addproductfrom> {
],
),
),
),
);
}
}

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

View File

@ -14,22 +14,14 @@ class businessempty extends StatefulWidget {
}
class _businessemptyState extends State<businessempty> {
int _selectedIndex = 0;
void _onItemTapped(int index) {
setState(() {
_selectedIndex = index;
});
}
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.white,
body: Column(
body: SafeArea(
child: Column(
children: [
SafeArea(
child: Row(
Row(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.center,
children: [
@ -82,11 +74,9 @@ class _businessemptyState extends State<businessempty> {
),
],
),
),
Spacer(),
Column(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.center,
children: [
DottedBorder(
dashPattern: [5, 5, 5, 5],
@ -128,48 +118,8 @@ class _businessemptyState extends State<businessempty> {
],
),
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,
),
],
),
);
}