Specific days & timing page creation

This commit is contained in:
vignesh 2022-06-04 12:12:50 +05:30
parent b7bcc82120
commit 55bb876545
3 changed files with 775 additions and 761 deletions

View File

@ -30,8 +30,7 @@ class _businesshomeState extends State<businesshome> {
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.white,
body: SingleChildScrollView(
child: Column(
body: Column(
children: [
SafeArea(
child: Row(
@ -300,8 +299,7 @@ class _businesshomeState extends State<businesshome> {
),
Spacer(),
Padding(
padding:
const EdgeInsets.only(right: 15, top: 10, bottom: 15),
padding: const EdgeInsets.only(right: 15, top: 10, bottom: 15),
child: TextButton.icon(
icon: Icon(
Icons.add,
@ -326,7 +324,7 @@ class _businesshomeState extends State<businesshome> {
],
),
Container(
height: 400,
height: 390,
child: ListView(
scrollDirection: Axis.vertical,
children: [
@ -334,13 +332,11 @@ class _businesshomeState extends State<businesshome> {
padding: const EdgeInsets.only(left: 15),
child: InkWell(
onTap: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (_) => businessdetail()));
Navigator.push(context,
MaterialPageRoute(builder: (_) => businessdetail()));
},
child: Container(
height: 200,
height: 150,
width: double.infinity,
margin: EdgeInsets.only(right: 15),
decoration: BoxDecoration(
@ -368,8 +364,7 @@ class _businesshomeState extends State<businesshome> {
left: 15, right: 10, top: 75),
child: Row(
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment:
CrossAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Padding(
padding: const EdgeInsets.only(),
@ -407,13 +402,13 @@ class _businesshomeState extends State<businesshome> {
),
Spacer(),
FlutterSwitch(
width: 95,
width: 105,
height: 40,
valueFontSize: HeadText,
toggleSize: 20,
toggleSize: 25,
value: status,
borderRadius: 20.0,
padding: 5.0,
borderRadius: 30.0,
padding: 8.0,
showOnOff: true,
onToggle: (val) {
setState(() {
@ -471,13 +466,11 @@ class _businesshomeState extends State<businesshome> {
padding: const EdgeInsets.only(left: 15),
child: InkWell(
onTap: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (_) => businessdetail()));
Navigator.push(context,
MaterialPageRoute(builder: (_) => businessdetail()));
},
child: Container(
height: 200,
height: 150,
width: double.infinity,
margin: EdgeInsets.only(right: 15, top: 10),
decoration: BoxDecoration(
@ -505,8 +498,7 @@ class _businesshomeState extends State<businesshome> {
left: 15, right: 10, top: 75),
child: Row(
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment:
CrossAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Padding(
padding: const EdgeInsets.only(),
@ -608,13 +600,11 @@ class _businesshomeState extends State<businesshome> {
padding: const EdgeInsets.only(left: 15),
child: InkWell(
onTap: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (_) => businessdetail()));
Navigator.push(context,
MaterialPageRoute(builder: (_) => businessdetail()));
},
child: Container(
height: 200,
height: 150,
width: double.infinity,
margin: EdgeInsets.only(right: 15, top: 10),
decoration: BoxDecoration(
@ -642,8 +632,7 @@ class _businesshomeState extends State<businesshome> {
left: 15, right: 10, top: 75),
child: Row(
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment:
CrossAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Padding(
padding: const EdgeInsets.only(),
@ -744,6 +733,7 @@ class _businesshomeState extends State<businesshome> {
],
),
),
Spacer(),
BottomNavigationBar(
iconSize: 20,
unselectedFontSize: SubText,
@ -787,7 +777,6 @@ class _businesshomeState extends State<businesshome> {
),
],
),
),
);
}
}

View File

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

View File

@ -1,11 +1,31 @@
import 'package:flutter/material.dart';
import 'package:flutter_switch/flutter_switch.dart';
import 'package:openclosenew/14_businessdetailsempty.dart';
class page1 extends StatelessWidget {
import '../FontFamily.dart';
import '../colors.dart';
import '../fontsize.dart';
class page1 extends StatefulWidget {
const page1({Key? key}) : super(key: key);
@override
State<page1> createState() => _page1State();
}
class _page1State extends State<page1> {
@override
Widget build(BuildContext context) {
return Row(
return Container(
height: 500,
decoration: BoxDecoration(color: Colors.white),
child: SafeArea(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Padding(
padding: const EdgeInsets.only(left: 15, right: 24),
child: Row(
children: [
Text(
"From",
@ -14,6 +34,7 @@ class page1 extends StatelessWidget {
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w300,
fontSize: 15,
color: DarkGray,
),
),
SizedBox(
@ -26,9 +47,15 @@ class page1 extends StatelessWidget {
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w300,
fontSize: 15,
color: DarkGray,
),
),
],
),
),
],
),
),
);
}
}