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:fcs/pages/widgets/progress.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
|
import '../widgets/local_button.dart';
|
||||||
import '../widgets/multi_img_file.dart';
|
import '../widgets/multi_img_file.dart';
|
||||||
|
|
||||||
typedef void FindCallBack();
|
typedef void FindCallBack();
|
||||||
@@ -30,6 +31,14 @@ class _CartonImageUploaState extends State<CartonImageUploadEditor> {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
final createBtn = Padding(
|
||||||
|
padding: const EdgeInsets.symmetric(horizontal: 30),
|
||||||
|
child: LocalButton(
|
||||||
|
textKey: "btn.save",
|
||||||
|
callBack: () {},
|
||||||
|
),
|
||||||
|
);
|
||||||
|
|
||||||
return LocalProgress(
|
return LocalProgress(
|
||||||
inAsyncCall: _isLoading,
|
inAsyncCall: _isLoading,
|
||||||
child: Scaffold(
|
child: Scaffold(
|
||||||
@@ -38,41 +47,25 @@ class _CartonImageUploaState extends State<CartonImageUploadEditor> {
|
|||||||
backgroundColor: Colors.white,
|
backgroundColor: Colors.white,
|
||||||
labelColor: primaryColor,
|
labelColor: primaryColor,
|
||||||
arrowColor: primaryColor,
|
arrowColor: primaryColor,
|
||||||
actions: []
|
actions: []),
|
||||||
|
body: Padding(
|
||||||
),
|
padding: EdgeInsets.only(left: 12.0, right: 12),
|
||||||
body:
|
child: ListView(
|
||||||
Padding(padding:EdgeInsets.only(left: 12.0, right: 12),
|
children: [
|
||||||
child: ListView(
|
Center(
|
||||||
children: [
|
child: Text("${_box?.cartonNumber}",
|
||||||
Center(
|
style: TextStyle(
|
||||||
child: Text("${_box?.cartonNumber}",
|
color: primaryColor,
|
||||||
style: TextStyle(
|
fontSize: 25,
|
||||||
color: primaryColor,
|
))),
|
||||||
fontSize: 25,
|
MultiImageFile(
|
||||||
))),
|
enabled: true,
|
||||||
|
controller: multiImgController,
|
||||||
MultiImageFile(
|
title: "Receipt File",
|
||||||
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