Skip to content

Commit

Permalink
chore: replace Container with Padding for ScreenSideOffset
Browse files Browse the repository at this point in the history
  • Loading branch information
ice-tychon committed Jul 30, 2024
1 parent f57a6c0 commit 7167c4b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/app/components/screen_offset/screen_side_offset.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7167c4b

Please sign in to comment.