WT1.1.2g Sizes fix
This commit is contained in:
parent
b71544ba13
commit
d984588567
@ -58,12 +58,17 @@ class _InputDialogState<Event> extends State<InputDialog<Event>> with Trans {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Dialog(
|
return SingleChildScrollView(
|
||||||
|
padding: EdgeInsets.only(
|
||||||
|
top: _nodeText1.hasFocus
|
||||||
|
? 0 // adjust values according to your need
|
||||||
|
: MediaQuery.of(context).size.height / 2 - 250), // adjust values according to your need
|
||||||
|
child: Dialog(
|
||||||
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(16)),
|
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(16)),
|
||||||
elevation: 0,
|
elevation: 0,
|
||||||
backgroundColor: Colors.transparent,
|
backgroundColor: Colors.transparent,
|
||||||
child: _buildChild(context),
|
child: _buildChild(context),
|
||||||
);
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
_buildChild(BuildContext context) => Container(
|
_buildChild(BuildContext context) => Container(
|
||||||
@ -74,7 +79,7 @@ class _InputDialogState<Event> extends State<InputDialog<Event>> with Trans {
|
|||||||
child: Column(
|
child: Column(
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
Container(
|
Container(
|
||||||
padding: const EdgeInsets.all(12.0),
|
padding: const EdgeInsets.all(0.0),
|
||||||
child: Column(children: [
|
child: Column(children: [
|
||||||
Text(
|
Text(
|
||||||
widget.title,
|
widget.title,
|
||||||
@ -184,5 +189,6 @@ class _InputDialogState<Event> extends State<InputDialog<Event>> with Trans {
|
|||||||
)
|
)
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
));
|
),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
@ -55,11 +55,28 @@ class _SizeState extends State<SizeWidget> with Trans {
|
|||||||
print("w " + mediaWidth.toString() + "h " + mediaHeight.toString());
|
print("w " + mediaWidth.toString() + "h " + mediaHeight.toString());
|
||||||
widget.exerciseBloc.setMediaDimensions(mediaWidth, mediaHeight);
|
widget.exerciseBloc.setMediaDimensions(mediaWidth, mediaHeight);
|
||||||
List<Widget> list = List();
|
List<Widget> list = List();
|
||||||
list.add(SizedBox(
|
list.add(GestureDetector(
|
||||||
//child: Container(color: Colors.black87),
|
onTap: () => {print("Save"), widget.exerciseBloc.add(ExerciseNewSaveWeight())},
|
||||||
|
child: SizedBox(
|
||||||
width: mediaWidth,
|
width: mediaWidth,
|
||||||
height: mediaHeight,
|
height: mediaHeight,
|
||||||
));
|
)));
|
||||||
|
|
||||||
|
list.add(
|
||||||
|
widget.exerciseBloc.isMan
|
||||||
|
? Image.asset(
|
||||||
|
"asset/image/man_sizes.png",
|
||||||
|
height: mediaHeight,
|
||||||
|
width: mediaWidth,
|
||||||
|
)
|
||||||
|
: Image.asset(
|
||||||
|
"asset/image/woman_sizes.png",
|
||||||
|
height: mediaHeight,
|
||||||
|
width: mediaWidth,
|
||||||
|
),
|
||||||
|
);
|
||||||
|
|
||||||
|
list.addAll(getSizeElements());
|
||||||
list.add(
|
list.add(
|
||||||
Positioned(
|
Positioned(
|
||||||
top: mediaHeight * .07,
|
top: mediaHeight * .07,
|
||||||
@ -93,21 +110,6 @@ class _SizeState extends State<SizeWidget> with Trans {
|
|||||||
],
|
],
|
||||||
)),
|
)),
|
||||||
);
|
);
|
||||||
list.add(
|
|
||||||
widget.exerciseBloc.isMan
|
|
||||||
? Image.asset(
|
|
||||||
"asset/image/man_sizes.png",
|
|
||||||
height: mediaHeight,
|
|
||||||
width: mediaWidth,
|
|
||||||
)
|
|
||||||
: Image.asset(
|
|
||||||
"asset/image/woman_sizes.png",
|
|
||||||
height: mediaHeight,
|
|
||||||
width: mediaWidth,
|
|
||||||
),
|
|
||||||
);
|
|
||||||
|
|
||||||
list.addAll(getSizeElements());
|
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user