[flutter]: fix overflow issue caused by long view name

This commit is contained in:
appflowy 2021-11-10 19:18:09 +08:00
parent 4f41c8d3e5
commit 3f04c807f4
2 changed files with 4 additions and 4 deletions

View File

@ -69,9 +69,9 @@ class FlowyNavigation extends StatelessWidget {
Selector<NavigationNotifier, List<NavigationItem>>(
selector: (context, notifier) => notifier.navigationItems,
builder: (ctx, items, child) => Expanded(
child: Wrap(
child: Row(
children: _renderNavigationItems(items),
crossAxisAlignment: WrapCrossAlignment.start,
// crossAxisAlignment: WrapCrossAlignment.start,
),
),
),
@ -149,7 +149,7 @@ class NaviItemWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
return item.leftBarItem.padding(horizontal: 2, vertical: 2);
return Expanded(child: item.leftBarItem.padding(horizontal: 2, vertical: 2));
}
}

View File

@ -56,7 +56,7 @@ class ViewSectionItem extends StatelessWidget {
List<Widget> children = [
SizedBox(width: 16, height: 16, child: state.view.thumbnail()),
const HSpace(2),
FlowyText.regular(state.view.name, fontSize: 12),
Expanded(child: FlowyText.regular(state.view.name, fontSize: 12)),
];
if (onHover || state.isEditing) {