From 7167c4be9f79f7a4b4fba262ea054c36ea9108d4 Mon Sep 17 00:00:00 2001 From: ice-tychon Date: Tue, 30 Jul 2024 15:00:00 +0300 Subject: [PATCH] chore: replace Container with Padding for ScreenSideOffset --- lib/app/components/screen_offset/screen_side_offset.dart | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/app/components/screen_offset/screen_side_offset.dart b/lib/app/components/screen_offset/screen_side_offset.dart index ec818e0ae..e13232578 100644 --- a/lib/app/components/screen_offset/screen_side_offset.dart +++ b/lib/app/components/screen_offset/screen_side_offset.dart @@ -47,9 +47,8 @@ class ScreenSideOffset extends StatelessWidget { @override Widget build(BuildContext context) { - // TODO: replace with Padding - return Container( - margin: only != null + return Padding( + padding: only != null ? only == ScreenOffsetSide.left ? EdgeInsets.only(left: margin) : EdgeInsets.only(right: margin)