1
0
mirror of https://github.com/flutter/samples.git synced 2026-05-30 19:08:56 +00:00

Made elements on component screen stay compact on wider screen, take 2 (#1267)

* Revert "Revert "Made elements on component screen stay compact on wider screen (#1258)" (#1266)"

This reverts commit 53c83adc71.

* ran flutter format for the changed files

* fixed test

Co-authored-by: Qun Cheng <quncheng@google.com>
This commit is contained in:
Qun Cheng
2022-05-12 17:28:32 -07:00
committed by GitHub
parent 53c83adc71
commit 52ef797b9a
3 changed files with 46 additions and 35 deletions

View File

@@ -179,15 +179,17 @@ class _Material3DemoState extends State<Material3Demo> {
body: SafeArea(
bottom: false,
top: false,
child: Row(children: <Widget>[
Padding(
padding: const EdgeInsets.symmetric(horizontal: 5),
child: NavigationRailSection(
onSelectItem: handleScreenChanged,
selectedIndex: screenIndex)),
const VerticalDivider(thickness: 1, width: 1),
createScreenFor(screenIndex, true),
]),
child: Row(
children: <Widget>[
Padding(
padding: const EdgeInsets.symmetric(horizontal: 5),
child: NavigationRailSection(
onSelectItem: handleScreenChanged,
selectedIndex: screenIndex)),
const VerticalDivider(thickness: 1, width: 1),
createScreenFor(screenIndex, true),
],
),
),
);
}