Skip to content

Commit

Permalink
Merge pull request #328 from LeetaoGoooo/fix-rendeflex-overflowed
Browse files Browse the repository at this point in the history
fix: A RenderFlex overflowed by 10.0 pixels on the right
  • Loading branch information
Predidit authored Oct 19, 2024
2 parents b52ba49 + f2df7b0 commit 2347ea6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/bean/appbar/sys_app_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ class SysAppBar extends StatelessWidget implements PreferredSizeWidget {

final Widget? leading;

final double? leadingWidth;

final PreferredSizeWidget? bottom;

const SysAppBar(
Expand All @@ -31,6 +33,7 @@ class SysAppBar extends StatelessWidget implements PreferredSizeWidget {
this.shape,
this.actions,
this.leading,
this.leadingWidth,
this.bottom});

void _handleCloseEvent() {
Expand Down Expand Up @@ -76,6 +79,7 @@ class SysAppBar extends StatelessWidget implements PreferredSizeWidget {
title: title,
actions: acs,
leading: leading,
leadingWidth: leadingWidth,
backgroundColor: backgroundColor,
elevation: elevation,
shape: shape,
Expand Down
1 change: 1 addition & 0 deletions lib/pages/popular/popular_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ class _PopularPageState extends State<PopularPage>
},
child: Scaffold(
appBar: SysAppBar(
leadingWidth: 66, // default 56 + 10
leading: (Utils.isCompact())
? Row(
children: [
Expand Down

0 comments on commit 2347ea6

Please sign in to comment.