diff --git a/openclosenew/assets/images/services_1.png b/openclosenew/assets/images/services_1.png new file mode 100644 index 0000000..fac74a2 Binary files /dev/null and b/openclosenew/assets/images/services_1.png differ diff --git a/openclosenew/assets/images/services_2.png b/openclosenew/assets/images/services_2.png new file mode 100644 index 0000000..68dbffd Binary files /dev/null and b/openclosenew/assets/images/services_2.png differ diff --git a/openclosenew/assets/images/services_3.png b/openclosenew/assets/images/services_3.png new file mode 100644 index 0000000..e844f2f Binary files /dev/null and b/openclosenew/assets/images/services_3.png differ diff --git a/openclosenew/lib/14_businessdetailsempty.dart b/openclosenew/lib/14_businessdetailsempty.dart index be11b22..08a6a89 100644 --- a/openclosenew/lib/14_businessdetailsempty.dart +++ b/openclosenew/lib/14_businessdetailsempty.dart @@ -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 { ), InkWell( onTap: () { - Navigator.pop(context); + Navigator.push(context, + MaterialPageRoute(builder: (_) => addphotos())); }, child: Container( padding: EdgeInsets.all(10), diff --git a/openclosenew/lib/23-ServiceListing.dart b/openclosenew/lib/23-ServiceListing.dart index 490f6a2..d7b10e2 100644 --- a/openclosenew/lib/23-ServiceListing.dart +++ b/openclosenew/lib/23-ServiceListing.dart @@ -110,7 +110,7 @@ class _serviceslistingState extends State 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 CrossAxisAlignment.start, children: [ Text( - 'Chicken Briyani', + 'Service Name', style: TextStyle( fontFamily: Font, fontStyle: FontStyle.normal, @@ -135,7 +135,7 @@ class _serviceslistingState extends State height: 5, ), Text( - '₹ 180.00', + '₹ 180.00 - 600.00', style: TextStyle( fontFamily: Font, fontStyle: FontStyle.normal, @@ -231,7 +231,7 @@ class _serviceslistingState extends State 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 CrossAxisAlignment.start, children: [ Text( - 'Mutton Briyani', + 'Service Name', style: TextStyle( fontFamily: Font, fontStyle: FontStyle.normal, @@ -256,7 +256,7 @@ class _serviceslistingState extends State height: 5, ), Text( - '₹ 270.00', + '₹ 180.00 - 600.00', style: TextStyle( fontFamily: Font, fontStyle: FontStyle.normal, @@ -352,7 +352,7 @@ class _serviceslistingState extends State 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 CrossAxisAlignment.start, children: [ Text( - 'Chicken Briyani', + 'Service Name', style: TextStyle( fontFamily: Font, fontStyle: FontStyle.normal, @@ -377,7 +377,7 @@ class _serviceslistingState extends State height: 5, ), Text( - '₹ 180.00', + '₹ 180.00 - 600.00', style: TextStyle( fontFamily: Font, fontStyle: FontStyle.normal, diff --git a/openclosenew/lib/24_addphotos.dart b/openclosenew/lib/24_addphotos.dart new file mode 100644 index 0000000..8bea2f7 --- /dev/null +++ b/openclosenew/lib/24_addphotos.dart @@ -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 createState() => _addphtosState(); +} + +class _addphtosState extends State { + @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, + ), + ), + ), + ), + ], + ), + ), + ], + ), + ), + ), + ); + } +} diff --git a/openclosenew/lib/25-addphotos1.dart b/openclosenew/lib/25-addphotos1.dart new file mode 100644 index 0000000..30ce72a --- /dev/null +++ b/openclosenew/lib/25-addphotos1.dart @@ -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 createState() => _addphotos1State(); +} + +class _addphotos1State extends State { + @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, + ), + ), + ], + ), + ], + ), + ), + ), + ); + } +} diff --git a/openclosenew/pubspec.lock b/openclosenew/pubspec.lock index ddd83e6..ce07fc3 100644 --- a/openclosenew/pubspec.lock +++ b/openclosenew/pubspec.lock @@ -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" diff --git a/openclosenew/pubspec.yaml b/openclosenew/pubspec.yaml index 180a964..a9ffd34 100644 --- a/openclosenew/pubspec.yaml +++ b/openclosenew/pubspec.yaml @@ -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