Verification add image to slider
This commit is contained in:
parent
93b8dbeb92
commit
15c5430cc7
@ -109,7 +109,7 @@ class _ImageInputContainerState extends State<ImageInputContainer> {
|
||||
child: AutoSizeText(
|
||||
"Choisir une image",
|
||||
style: TextStyle(color: kWhite),
|
||||
maxLines: 2,
|
||||
maxLines: 1,
|
||||
)
|
||||
),
|
||||
)
|
||||
|
||||
@ -29,7 +29,7 @@ void showNewOrUpdateImageSlider(ImageDTO inputImageDTO, Function getResult, AppC
|
||||
|
||||
Size size = MediaQuery.of(context).size;
|
||||
showDialog(
|
||||
builder: (BuildContext context) => AlertDialog(
|
||||
builder: (BuildContext dialogContext) => AlertDialog(
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.all(Radius.circular(20.0))
|
||||
),
|
||||
@ -43,8 +43,7 @@ void showNewOrUpdateImageSlider(ImageDTO inputImageDTO, Function getResult, AppC
|
||||
Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Align(
|
||||
alignment: AlignmentDirectional.center,
|
||||
Center(
|
||||
child: ImageInputContainer(
|
||||
label: "Image :",
|
||||
initialValue: imageDTO.resourceId,
|
||||
@ -56,11 +55,11 @@ void showNewOrUpdateImageSlider(ImageDTO inputImageDTO, Function getResult, AppC
|
||||
),
|
||||
),
|
||||
Container(
|
||||
child: SingleChildScrollView(
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
||||
children: getTranslations(context, appContext, imageDTO),
|
||||
),
|
||||
height: size.height * 0.33,
|
||||
width: double.infinity,
|
||||
child: ListView(
|
||||
scrollDirection: Axis.horizontal,
|
||||
children: getTranslations(dialogContext, appContext, imageDTO),
|
||||
),
|
||||
),
|
||||
],
|
||||
@ -83,7 +82,7 @@ void showNewOrUpdateImageSlider(ImageDTO inputImageDTO, Function getResult, AppC
|
||||
icon: Icons.undo,
|
||||
color: kSecond,
|
||||
press: () {
|
||||
Navigator.of(context).pop();
|
||||
Navigator.of(dialogContext).pop();
|
||||
},
|
||||
fontSize: 20,
|
||||
),
|
||||
@ -100,8 +99,10 @@ void showNewOrUpdateImageSlider(ImageDTO inputImageDTO, Function getResult, AppC
|
||||
color: kPrimaryColor,
|
||||
textColor: kWhite,
|
||||
press: () {
|
||||
if (imageDTO.resourceId != null) {
|
||||
getResult(imageDTO);
|
||||
Navigator.of(context).pop();
|
||||
Navigator.of(dialogContext).pop();
|
||||
}
|
||||
},
|
||||
fontSize: 20,
|
||||
),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user