24 add photos design completed
This commit is contained in:
parent
9d45a4c28e
commit
fea1032a9e
BIN
openclosenew/assets/images/services_1.png
Normal file
BIN
openclosenew/assets/images/services_1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 MiB |
BIN
openclosenew/assets/images/services_2.png
Normal file
BIN
openclosenew/assets/images/services_2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 MiB |
BIN
openclosenew/assets/images/services_3.png
Normal file
BIN
openclosenew/assets/images/services_3.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 628 KiB |
@ -6,6 +6,7 @@ import 'package:openclosenew/22-AddService.dart';
|
||||
import 'package:openclosenew/colors.dart';
|
||||
|
||||
import '18-AddProductFrom.dart';
|
||||
import '24_addphotos.dart';
|
||||
import 'FontFamily.dart';
|
||||
import 'fontsize.dart';
|
||||
|
||||
@ -393,7 +394,8 @@ class _businessdetailsemptyState extends State<businessdetailsempty> {
|
||||
),
|
||||
InkWell(
|
||||
onTap: () {
|
||||
Navigator.pop(context);
|
||||
Navigator.push(context,
|
||||
MaterialPageRoute(builder: (_) => addphotos()));
|
||||
},
|
||||
child: Container(
|
||||
padding: EdgeInsets.all(10),
|
||||
|
@ -110,7 +110,7 @@ class _serviceslistingState extends State<serviceslisting>
|
||||
children: [
|
||||
Image(
|
||||
image: AssetImage(
|
||||
'assets/images/Chicken_Briyani.png'),
|
||||
'assets/images/services_1.png'),
|
||||
),
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(
|
||||
@ -122,7 +122,7 @@ class _serviceslistingState extends State<serviceslisting>
|
||||
CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
'Chicken Briyani',
|
||||
'Service Name',
|
||||
style: TextStyle(
|
||||
fontFamily: Font,
|
||||
fontStyle: FontStyle.normal,
|
||||
@ -135,7 +135,7 @@ class _serviceslistingState extends State<serviceslisting>
|
||||
height: 5,
|
||||
),
|
||||
Text(
|
||||
'₹ 180.00',
|
||||
'₹ 180.00 - 600.00',
|
||||
style: TextStyle(
|
||||
fontFamily: Font,
|
||||
fontStyle: FontStyle.normal,
|
||||
@ -231,7 +231,7 @@ class _serviceslistingState extends State<serviceslisting>
|
||||
children: [
|
||||
Image(
|
||||
image: AssetImage(
|
||||
'assets/images/MuttonBriyani.png'),
|
||||
'assets/images/services_2.png'),
|
||||
),
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(
|
||||
@ -243,7 +243,7 @@ class _serviceslistingState extends State<serviceslisting>
|
||||
CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
'Mutton Briyani',
|
||||
'Service Name',
|
||||
style: TextStyle(
|
||||
fontFamily: Font,
|
||||
fontStyle: FontStyle.normal,
|
||||
@ -256,7 +256,7 @@ class _serviceslistingState extends State<serviceslisting>
|
||||
height: 5,
|
||||
),
|
||||
Text(
|
||||
'₹ 270.00',
|
||||
'₹ 180.00 - 600.00',
|
||||
style: TextStyle(
|
||||
fontFamily: Font,
|
||||
fontStyle: FontStyle.normal,
|
||||
@ -352,7 +352,7 @@ class _serviceslistingState extends State<serviceslisting>
|
||||
children: [
|
||||
Image(
|
||||
image: AssetImage(
|
||||
'assets/images/GrilledChicken.png'),
|
||||
'assets/images/services_3.png'),
|
||||
),
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(
|
||||
@ -364,7 +364,7 @@ class _serviceslistingState extends State<serviceslisting>
|
||||
CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
'Chicken Briyani',
|
||||
'Service Name',
|
||||
style: TextStyle(
|
||||
fontFamily: Font,
|
||||
fontStyle: FontStyle.normal,
|
||||
@ -377,7 +377,7 @@ class _serviceslistingState extends State<serviceslisting>
|
||||
height: 5,
|
||||
),
|
||||
Text(
|
||||
'₹ 180.00',
|
||||
'₹ 180.00 - 600.00',
|
||||
style: TextStyle(
|
||||
fontFamily: Font,
|
||||
fontStyle: FontStyle.normal,
|
||||
|
158
openclosenew/lib/24_addphotos.dart
Normal file
158
openclosenew/lib/24_addphotos.dart
Normal file
@ -0,0 +1,158 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:dotted_border/dotted_border.dart';
|
||||
|
||||
import '11_busiesshome.dart';
|
||||
import '25-addphotos1.dart';
|
||||
import 'FontFamily.dart';
|
||||
import 'colors.dart';
|
||||
import 'fontsize.dart';
|
||||
|
||||
class addphotos extends StatefulWidget {
|
||||
const addphotos({Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
State<addphotos> createState() => _addphtosState();
|
||||
}
|
||||
|
||||
class _addphtosState extends State<addphotos> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
backgroundColor: Colors.white,
|
||||
body: SafeArea(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.only(left: 20, right: 15, top: 10),
|
||||
child: Column(
|
||||
children: [
|
||||
Row(
|
||||
children: [
|
||||
InkWell(
|
||||
onTap: () {
|
||||
Navigator.pop(context);
|
||||
},
|
||||
child: Icon(
|
||||
Icons.arrow_back,
|
||||
color: DarkGray,
|
||||
size: 24,
|
||||
),
|
||||
),
|
||||
SizedBox(width: 20),
|
||||
Text(
|
||||
'Services',
|
||||
style: TextStyle(
|
||||
fontFamily: Font,
|
||||
fontStyle: FontStyle.normal,
|
||||
fontWeight: FontWeight.w500,
|
||||
fontSize: HeadText,
|
||||
color: DarkGray,
|
||||
),
|
||||
),
|
||||
Spacer(),
|
||||
InkWell(
|
||||
onTap: () {},
|
||||
child: Icon(
|
||||
Icons.add,
|
||||
color: DarkGray,
|
||||
size: 24,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
Spacer(),
|
||||
Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
children: [
|
||||
InkWell(
|
||||
onTap: () {
|
||||
Navigator.pop(context);
|
||||
},
|
||||
child: DottedBorder(
|
||||
dashPattern: [5, 5, 5, 5],
|
||||
color: primaryColor,
|
||||
padding: EdgeInsets.all(5),
|
||||
radius: Radius.circular(6),
|
||||
child: Container(
|
||||
height: 100,
|
||||
width: 330,
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Image(
|
||||
image:
|
||||
AssetImage('assets/images/gallery-icon.png'),
|
||||
color: primaryColor,
|
||||
width: 30,
|
||||
height: 30,
|
||||
),
|
||||
SizedBox(width: 10),
|
||||
Text(
|
||||
'Upload Photos',
|
||||
style: TextStyle(
|
||||
fontFamily: Font,
|
||||
fontStyle: FontStyle.normal,
|
||||
fontWeight: FontWeight.w400,
|
||||
fontSize: HeadText,
|
||||
color: primaryColor,
|
||||
),
|
||||
)
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
Spacer(),
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(bottom: 24),
|
||||
child: Row(
|
||||
children: [
|
||||
Expanded(
|
||||
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: MaterialButton(
|
||||
height: 50,
|
||||
minWidth: double.infinity,
|
||||
color: primaryColor,
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(4)),
|
||||
onPressed: () {
|
||||
Navigator.push(context,
|
||||
MaterialPageRoute(builder: (_) => addphotos1()));
|
||||
},
|
||||
child: Text(
|
||||
'Save',
|
||||
style: TextStyle(
|
||||
color: White,
|
||||
fontSize: HeadText,
|
||||
fontFamily: Font,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
54
openclosenew/lib/25-addphotos1.dart
Normal file
54
openclosenew/lib/25-addphotos1.dart
Normal file
@ -0,0 +1,54 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:image_picker/image_picker.dart';
|
||||
import 'FontFamily.dart';
|
||||
import 'colors.dart';
|
||||
import 'fontsize.dart';
|
||||
|
||||
class addphotos1 extends StatefulWidget {
|
||||
const addphotos1({Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
State<addphotos1> createState() => _addphotos1State();
|
||||
}
|
||||
|
||||
class _addphotos1State extends State<addphotos1> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
body: SafeArea(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.only(left: 20, right: 15, top: 10),
|
||||
child: Column(
|
||||
children: [
|
||||
Row(
|
||||
children: [
|
||||
InkWell(
|
||||
onTap: () {
|
||||
Navigator.pop(context);
|
||||
},
|
||||
child: Icon(
|
||||
Icons.arrow_back,
|
||||
color: DarkGray,
|
||||
size: 24,
|
||||
),
|
||||
),
|
||||
SizedBox(width: 20),
|
||||
Text(
|
||||
'Add Photos',
|
||||
style: TextStyle(
|
||||
fontFamily: Font,
|
||||
fontStyle: FontStyle.normal,
|
||||
fontWeight: FontWeight.w500,
|
||||
fontSize: HeadText,
|
||||
color: DarkGray,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
@ -192,7 +192,7 @@ packages:
|
||||
source: hosted
|
||||
version: "3.1.3"
|
||||
image_picker:
|
||||
dependency: transitive
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: image_picker
|
||||
url: "https://pub.dartlang.org"
|
||||
|
@ -32,6 +32,7 @@ dependencies:
|
||||
snippet_coder_utils: ^1.0.8
|
||||
dotted_border: ^2.0.0+2
|
||||
flutter_switch: ^0.3.2
|
||||
image_picker: ^0.8.5+3
|
||||
|
||||
|
||||
# The following adds the Cupertino Icons fonts to your application.
|
||||
@ -46,6 +47,7 @@ dependencies:
|
||||
|
||||
|
||||
|
||||
|
||||
dev_dependencies:
|
||||
flutter_test:
|
||||
sdk: flutter
|
||||
@ -53,6 +55,7 @@ dev_dependencies:
|
||||
flutter_native_splash: ^2.1.6
|
||||
flutter_otp_text_field: ^1.0.0
|
||||
|
||||
|
||||
flutter_native_splash:
|
||||
background_image: "assets/images/img.png"
|
||||
backgroung_color: whight
|
||||
|
Loading…
Reference in New Issue
Block a user