update upload image form
This commit is contained in:
@@ -5,6 +5,7 @@ import 'package:fcs/pages/widgets/multi_img_controller.dart';
|
||||
import 'package:fcs/pages/widgets/progress.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import '../widgets/local_button.dart';
|
||||
import '../widgets/multi_img_file.dart';
|
||||
|
||||
typedef void FindCallBack();
|
||||
@@ -30,6 +31,14 @@ class _CartonImageUploaState extends State<CartonImageUploadEditor> {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final createBtn = Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 30),
|
||||
child: LocalButton(
|
||||
textKey: "btn.save",
|
||||
callBack: () {},
|
||||
),
|
||||
);
|
||||
|
||||
return LocalProgress(
|
||||
inAsyncCall: _isLoading,
|
||||
child: Scaffold(
|
||||
@@ -38,11 +47,9 @@ class _CartonImageUploaState extends State<CartonImageUploadEditor> {
|
||||
backgroundColor: Colors.white,
|
||||
labelColor: primaryColor,
|
||||
arrowColor: primaryColor,
|
||||
actions: []
|
||||
|
||||
),
|
||||
body:
|
||||
Padding(padding:EdgeInsets.only(left: 12.0, right: 12),
|
||||
actions: []),
|
||||
body: Padding(
|
||||
padding: EdgeInsets.only(left: 12.0, right: 12),
|
||||
child: ListView(
|
||||
children: [
|
||||
Center(
|
||||
@@ -51,26 +58,12 @@ class _CartonImageUploaState extends State<CartonImageUploadEditor> {
|
||||
color: primaryColor,
|
||||
fontSize: 25,
|
||||
))),
|
||||
|
||||
MultiImageFile(
|
||||
enabled: true,
|
||||
controller: multiImgController,
|
||||
title: "Receipt File",
|
||||
),
|
||||
Center(
|
||||
child: ElevatedButton(
|
||||
style: ElevatedButton.styleFrom(
|
||||
backgroundColor: Color(0xff272262),
|
||||
elevation: 3,
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(5.0)),
|
||||
minimumSize: Size(300, 45), //////// HERE
|
||||
),
|
||||
onPressed: () {},
|
||||
child:
|
||||
const Text('Save', style: TextStyle(fontSize: 20)),
|
||||
),
|
||||
),
|
||||
createBtn,
|
||||
],
|
||||
),
|
||||
)));
|
||||
|
||||
Reference in New Issue
Block a user