TF-855 Fix bottom padding of CreateNewRule dialog
This commit is contained in:
@@ -32,31 +32,21 @@ class RuleFilterCreatorView extends GetWidget<RulesFilterCreatorController> {
|
|||||||
body: GestureDetector(
|
body: GestureDetector(
|
||||||
onTap: () => FocusScope.of(context).unfocus(),
|
onTap: () => FocusScope.of(context).unfocus(),
|
||||||
child: SafeArea(
|
child: SafeArea(
|
||||||
child: Align(
|
bottom: false,
|
||||||
alignment: Alignment.bottomCenter,
|
left: false,
|
||||||
child: Card(
|
right: false,
|
||||||
color: Colors.transparent,
|
child: Container(
|
||||||
shape: const RoundedRectangleBorder(
|
decoration: const BoxDecoration(
|
||||||
borderRadius: BorderRadius.only(
|
borderRadius: BorderRadius.only(
|
||||||
|
topLeft: Radius.circular(16),
|
||||||
|
topRight: Radius.circular(16)),
|
||||||
|
color: Colors.white),
|
||||||
|
margin: const EdgeInsets.only(top: BuildUtils.isWeb ? 70 : 0),
|
||||||
|
child: ClipRRect(
|
||||||
|
borderRadius: const BorderRadius.only(
|
||||||
topLeft: Radius.circular(16),
|
topLeft: Radius.circular(16),
|
||||||
topRight: Radius.circular(16),
|
topRight: Radius.circular(16)),
|
||||||
)),
|
child: SafeArea(child: _buildRulesFilterFormOnMobile(context))
|
||||||
child: Container(
|
|
||||||
decoration: const BoxDecoration(
|
|
||||||
color: Colors.white,
|
|
||||||
borderRadius: BorderRadius.only(
|
|
||||||
topLeft: Radius.circular(16),
|
|
||||||
topRight: Radius.circular(16),
|
|
||||||
)),
|
|
||||||
width: double.infinity,
|
|
||||||
height: _responsiveUtils.getSizeScreenHeight(context) - 70,
|
|
||||||
child: ClipRRect(
|
|
||||||
borderRadius: const BorderRadius.only(
|
|
||||||
topLeft: Radius.circular(16),
|
|
||||||
topRight: Radius.circular(16)),
|
|
||||||
child: _buildRulesFilterFormOnMobile(context)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -66,28 +56,20 @@ class RuleFilterCreatorView extends GetWidget<RulesFilterCreatorController> {
|
|||||||
backgroundColor: Colors.black38,
|
backgroundColor: Colors.black38,
|
||||||
body: GestureDetector(
|
body: GestureDetector(
|
||||||
onTap: () => FocusScope.of(context).unfocus(),
|
onTap: () => FocusScope.of(context).unfocus(),
|
||||||
child: Align(alignment: Alignment.bottomCenter, child: Card(
|
child: Align(alignment: Alignment.bottomCenter, child: Container(
|
||||||
color: Colors.transparent,
|
decoration: const BoxDecoration(
|
||||||
shape: const RoundedRectangleBorder(
|
color: Colors.white,
|
||||||
borderRadius: BorderRadius.only(
|
borderRadius: BorderRadius.only(
|
||||||
topLeft: Radius.circular(16),
|
topLeft: Radius.circular(16),
|
||||||
topRight: Radius.circular(16),
|
topRight: Radius.circular(16),
|
||||||
)),
|
)),
|
||||||
child: Container(
|
width: double.infinity,
|
||||||
decoration: const BoxDecoration(
|
height: _responsiveUtils.getSizeScreenHeight(context) * 0.7,
|
||||||
color: Colors.white,
|
child: ClipRRect(
|
||||||
borderRadius: BorderRadius.only(
|
borderRadius: const BorderRadius.only(
|
||||||
topLeft: Radius.circular(16),
|
topLeft: Radius.circular(16),
|
||||||
topRight: Radius.circular(16),
|
topRight: Radius.circular(16)),
|
||||||
)),
|
child: _buildRulesFilterFormOnTablet(context)
|
||||||
width: double.infinity,
|
|
||||||
height: _responsiveUtils.getSizeScreenHeight(context) * 0.7,
|
|
||||||
child: ClipRRect(
|
|
||||||
borderRadius: const BorderRadius.only(
|
|
||||||
topLeft: Radius.circular(16),
|
|
||||||
topRight: Radius.circular(16)),
|
|
||||||
child: _buildRulesFilterFormOnTablet(context)
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
)),
|
)),
|
||||||
)
|
)
|
||||||
@@ -111,8 +93,7 @@ class RuleFilterCreatorView extends GetWidget<RulesFilterCreatorController> {
|
|||||||
child: _buildRulesFilterFormOnDesktop(context)
|
child: _buildRulesFilterFormOnDesktop(context)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)),
|
||||||
),
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user