[SYNC] Altered the dialog helper to center.
This commit is contained in:
@@ -17,20 +17,13 @@ class AstromicDialogHelper {
|
||||
context: context,
|
||||
useSafeArea: configuration.safeAreaAware,
|
||||
builder: (BuildContext _) {
|
||||
return Container(
|
||||
margin: style.placement,
|
||||
//
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
return Dialog(
|
||||
backgroundColor: Colors.transparent,
|
||||
insetPadding: style.placement?.resolve(style.textDirection) ?? const EdgeInsets.symmetric(horizontal: 40, vertical: 24),
|
||||
child: Stack(
|
||||
children: <Widget>[
|
||||
Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: <Widget>[
|
||||
Stack(
|
||||
children: [
|
||||
Container(
|
||||
width: (style.width ?? 0) - ((style.placement?.start ?? 0) + (style.placement?.start ?? 0)),
|
||||
//
|
||||
width: style.width,
|
||||
padding: style.contentPadding,
|
||||
decoration: BoxDecoration(
|
||||
color: style.backgroundColor,
|
||||
@@ -44,16 +37,48 @@ class AstromicDialogHelper {
|
||||
start: style.closeWidgetPlacement?.start,
|
||||
end: style.closeWidgetPlacement?.end,
|
||||
top: style.closeWidgetPlacement?.top,
|
||||
//
|
||||
child: stackedCloseWidget,
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
// Container(
|
||||
// margin: style.placement,
|
||||
// //
|
||||
// child: Column(
|
||||
// mainAxisSize: MainAxisSize.min,
|
||||
// children: <Widget>[
|
||||
// Row(
|
||||
// mainAxisSize: MainAxisSize.min,
|
||||
// children: <Widget>[
|
||||
// Stack(
|
||||
// children: [
|
||||
// Container(
|
||||
// width: (style.width ?? 0) - ((style.placement?.start ?? 0) + (style.placement?.start ?? 0)),
|
||||
// //
|
||||
// padding: style.contentPadding,
|
||||
// decoration: BoxDecoration(
|
||||
// color: style.backgroundColor,
|
||||
// borderRadius: style.radius,
|
||||
// ),
|
||||
// child: contentSection,
|
||||
// ),
|
||||
// if (stackedCloseWidget != null)
|
||||
// Positioned.directional(
|
||||
// textDirection: style.textDirection,
|
||||
// start: style.closeWidgetPlacement?.start,
|
||||
// end: style.closeWidgetPlacement?.end,
|
||||
// top: style.closeWidgetPlacement?.top,
|
||||
// //
|
||||
// child: stackedCloseWidget,
|
||||
// ),
|
||||
// ],
|
||||
// ),
|
||||
// ],
|
||||
// ),
|
||||
// ],
|
||||
// ),
|
||||
// );
|
||||
});
|
||||
//
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user