Add Product form design button created
This commit is contained in:
parent
92a6f9ab2c
commit
6b7634e47f
@ -154,6 +154,7 @@ class _businessdetailsemptyState extends State<businessdetailsempty> {
|
||||
fontWeight: FontWeight.w600,
|
||||
letterSpacing: 0.25,
|
||||
color: Gray,
|
||||
fontSize: 12,
|
||||
),
|
||||
),
|
||||
],
|
||||
|
@ -29,19 +29,18 @@ class _addproductfromState extends State<addproductfrom> {
|
||||
}
|
||||
|
||||
bool status = false;
|
||||
var Color = primaryColor;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
loadData();
|
||||
|
||||
return Scaffold(
|
||||
backgroundColor: White,
|
||||
body: SafeArea(
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(left: 10),
|
||||
child: Row(
|
||||
Row(
|
||||
children: [
|
||||
IconButton(
|
||||
icon: Icon(Icons.arrow_back, size: 24),
|
||||
@ -62,51 +61,65 @@ class _addproductfromState extends State<addproductfrom> {
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
Row(
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(top: 20, left: 15, right: 15),
|
||||
child: Row(
|
||||
children: [
|
||||
Expanded(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.only(left: 24, bottom: 24),
|
||||
child: MaterialButton(
|
||||
color: (status == true) ? White : primaryColor,
|
||||
height: 50,
|
||||
minWidth: double.infinity,
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(4)),
|
||||
onPressed: () {},
|
||||
borderRadius: BorderRadius.only(
|
||||
topLeft: Radius.circular(4),
|
||||
bottomLeft: Radius.circular(4),
|
||||
),
|
||||
),
|
||||
onPressed: () {
|
||||
setState(() {
|
||||
status = !status;
|
||||
});
|
||||
},
|
||||
child: Text(
|
||||
"Veg",
|
||||
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: () {},
|
||||
child: Text(
|
||||
'Non Veg',
|
||||
style: TextStyle(
|
||||
color: White,
|
||||
color: (status == true) ? Gray : White,
|
||||
fontSize: HeadText,
|
||||
fontFamily: Font,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
Expanded(
|
||||
child: MaterialButton(
|
||||
color: (status == true) ? primaryColor : White,
|
||||
height: 50,
|
||||
minWidth: double.infinity,
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.only(
|
||||
topRight: Radius.circular(4),
|
||||
bottomRight: Radius.circular(4),
|
||||
),
|
||||
),
|
||||
onPressed: () {
|
||||
setState(() {
|
||||
status = !status;
|
||||
});
|
||||
},
|
||||
child: Text(
|
||||
"Non Veg",
|
||||
style: TextStyle(
|
||||
color: (status == true) ? White : Gray,
|
||||
fontSize: HeadText,
|
||||
fontFamily: Font,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
@ -1 +1 @@
|
||||
String Font = 'Manrope';
|
||||
String Font = 'Manrope.ttf';
|
||||
|
@ -2,7 +2,6 @@ import 'package:flutter/material.dart';
|
||||
import 'package:flutter_switch/flutter_switch.dart';
|
||||
import 'package:openclosenew/14_businessdetailsempty.dart';
|
||||
import 'package:smooth_page_indicator/smooth_page_indicator.dart';
|
||||
|
||||
import 'FontFamily.dart';
|
||||
import 'colors.dart';
|
||||
import 'fontsize.dart';
|
||||
@ -414,7 +413,7 @@ class _businessdetailState extends State<businessdetail> {
|
||||
fontFamily: Font,
|
||||
fontStyle: FontStyle.normal,
|
||||
fontWeight: FontWeight.w700,
|
||||
fontSize: TitleText,
|
||||
fontSize: HeadText,
|
||||
color: primaryColor,
|
||||
),
|
||||
),
|
||||
@ -471,7 +470,7 @@ class _businessdetailState extends State<businessdetail> {
|
||||
fontFamily: Font,
|
||||
fontStyle: FontStyle.normal,
|
||||
fontWeight: FontWeight.w700,
|
||||
fontSize: TitleText,
|
||||
fontSize: HeadText,
|
||||
color: primaryColor,
|
||||
),
|
||||
),
|
||||
@ -517,7 +516,7 @@ class _businessdetailState extends State<businessdetail> {
|
||||
fontFamily: Font,
|
||||
fontStyle: FontStyle.normal,
|
||||
fontWeight: FontWeight.w600,
|
||||
fontSize: TitleText,
|
||||
fontSize: HeadText,
|
||||
color: DarkGray,
|
||||
),
|
||||
),
|
||||
@ -580,7 +579,7 @@ class _businessdetailState extends State<businessdetail> {
|
||||
fontFamily: Font,
|
||||
fontStyle: FontStyle.normal,
|
||||
fontWeight: FontWeight.w600,
|
||||
fontSize: HeadText,
|
||||
fontSize: SubText,
|
||||
color: DarkGray,
|
||||
),
|
||||
),
|
||||
@ -627,7 +626,7 @@ class _businessdetailState extends State<businessdetail> {
|
||||
fontFamily: Font,
|
||||
fontStyle: FontStyle.normal,
|
||||
fontWeight: FontWeight.w600,
|
||||
fontSize: HeadText,
|
||||
fontSize: SubText,
|
||||
color: DarkGray,
|
||||
),
|
||||
),
|
||||
@ -676,7 +675,7 @@ class _businessdetailState extends State<businessdetail> {
|
||||
fontFamily: Font,
|
||||
fontStyle: FontStyle.normal,
|
||||
fontWeight: FontWeight.w600,
|
||||
fontSize: HeadText,
|
||||
fontSize: SubText,
|
||||
color: DarkGray,
|
||||
),
|
||||
),
|
||||
@ -700,7 +699,7 @@ class _businessdetailState extends State<businessdetail> {
|
||||
fontFamily: Font,
|
||||
fontStyle: FontStyle.normal,
|
||||
fontWeight: FontWeight.w600,
|
||||
fontSize: TitleText,
|
||||
fontSize: HeadText,
|
||||
color: DarkGray,
|
||||
),
|
||||
),
|
||||
@ -801,7 +800,7 @@ class _businessdetailState extends State<businessdetail> {
|
||||
fontFamily: Font,
|
||||
fontStyle: FontStyle.normal,
|
||||
fontWeight: FontWeight.w600,
|
||||
fontSize: TitleText,
|
||||
fontSize: HeadText,
|
||||
color: DarkGray,
|
||||
),
|
||||
),
|
||||
@ -984,7 +983,7 @@ class _businessdetailState extends State<businessdetail> {
|
||||
fontFamily: Font,
|
||||
fontStyle: FontStyle.normal,
|
||||
fontWeight: FontWeight.w600,
|
||||
fontSize: TitleText,
|
||||
fontSize: HeadText,
|
||||
color: DarkGray,
|
||||
),
|
||||
),
|
||||
@ -1038,7 +1037,7 @@ class _businessdetailState extends State<businessdetail> {
|
||||
fontFamily: Font,
|
||||
fontStyle: FontStyle.normal,
|
||||
fontWeight: FontWeight.w700,
|
||||
fontSize: TitleText,
|
||||
fontSize: HeadText,
|
||||
color: primaryColor,
|
||||
),
|
||||
),
|
||||
@ -1089,7 +1088,7 @@ class _businessdetailState extends State<businessdetail> {
|
||||
fontFamily: Font,
|
||||
fontStyle: FontStyle.normal,
|
||||
fontWeight: FontWeight.w700,
|
||||
fontSize: TitleText,
|
||||
fontSize: HeadText,
|
||||
color: primaryColor,
|
||||
),
|
||||
),
|
||||
@ -1124,7 +1123,7 @@ class _businessdetailState extends State<businessdetail> {
|
||||
fontFamily: Font,
|
||||
fontStyle: FontStyle.normal,
|
||||
fontWeight: FontWeight.w600,
|
||||
fontSize: TitleText,
|
||||
fontSize: HeadText,
|
||||
color: DarkGray,
|
||||
),
|
||||
),
|
||||
@ -1180,7 +1179,7 @@ class _businessdetailState extends State<businessdetail> {
|
||||
fontFamily: Font,
|
||||
fontStyle: FontStyle.normal,
|
||||
fontWeight: FontWeight.w700,
|
||||
fontSize: TitleText,
|
||||
fontSize: HeadText,
|
||||
color: primaryColor,
|
||||
),
|
||||
),
|
||||
@ -1243,7 +1242,7 @@ class _businessdetailState extends State<businessdetail> {
|
||||
fontFamily: Font,
|
||||
fontStyle: FontStyle.normal,
|
||||
fontWeight: FontWeight.w700,
|
||||
fontSize: TitleText,
|
||||
fontSize: HeadText,
|
||||
color: primaryColor,
|
||||
),
|
||||
),
|
||||
|
Loading…
Reference in New Issue
Block a user