BusinessAppFlutter/openclosenew/lib/24_addphotos.dart

125 lines
3.7 KiB
Dart
Raw Normal View History

2022-06-21 17:00:42 +00:00
import 'package:flutter/material.dart';
import 'package:dotted_border/dotted_border.dart';
2022-07-18 06:36:52 +00:00
import 'package:openclosenew/25-addphotos1.dart';
2022-06-21 17:00:42 +00:00
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> {
2022-07-18 06:36:52 +00:00
List<addphotos1> users = [];
2022-06-21 17:00:42 +00:00
@override
Widget build(BuildContext context) {
return Scaffold(
2022-07-18 06:36:52 +00:00
appBar: AppBar(
title: Text(
'Add Photos',
style: TextStyle(
fontFamily: Font,
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w500,
fontSize: HeadText,
color: DarkGray,
),
),
),
body: Column(
children: [
Spacer(),
Center(
child: InkWell(
onTap: () {
setState(() {});
},
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,
2022-06-22 19:39:23 +00:00
),
),
2022-07-18 06:36:52 +00:00
],
2022-06-21 17:00:42 +00:00
),
2022-07-18 06:36:52 +00:00
),
2022-06-21 17:00:42 +00:00
),
2022-07-18 06:36:52 +00:00
),
),
Spacer(),
Padding(
padding: const EdgeInsets.only(bottom: 24, right: 20, left: 20),
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,
2022-06-21 17:00:42 +00:00
),
),
2022-07-18 06:36:52 +00:00
),
),
Expanded(
child: MaterialButton(
height: 50,
minWidth: double.infinity,
color: primaryColor,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(4)),
onPressed: () {},
child: Text(
'Save',
style: TextStyle(
color: White,
fontSize: HeadText,
fontFamily: Font,
2022-06-21 17:00:42 +00:00
),
),
2022-07-18 06:36:52 +00:00
),
2022-06-21 17:00:42 +00:00
),
2022-07-18 06:36:52 +00:00
],
),
2022-06-21 17:00:42 +00:00
),
2022-07-18 06:36:52 +00:00
],
2022-06-21 17:00:42 +00:00
),
);
}
}