From 12d8d751a8dcf336e93d7ddf9609423dfc2b93e8 Mon Sep 17 00:00:00 2001 From: Joe Kawai Date: Fri, 13 Dec 2024 22:49:47 +0800 Subject: [PATCH] Add `resizeToAvoidBottomInset` parameter in `FScaffold` (#304) * Initial fix * Add _wrapper object * Fix render object for scaffold * Fix flashing navbar * Complete implementation w tests * Commit from GitHub Actions (Forui Presubmit) * Fix failing build * Commit from GitHub Actions (Forui Presubmit) * Apply suggestions from code review Co-authored-by: Matthias Ngeo * Fix pr issues --------- Co-authored-by: Matthias Ngeo --- .../Run_Samples_build_runner.xml | 2 +- docs/pages/docs/layout/scaffold.mdx | 3 +- forui/CHANGELOG.md | 2 + forui/example/.gitignore | 2 + forui/example/lib/sandbox.dart | 28 ++- forui/lib/src/widgets/scaffold.dart | 185 ++++++++++++++++-- .../resizable/expanded-Axis.horizontal.png | Bin 26365 -> 26352 bytes .../resizeToAvoidBottomInset-false.png | Bin 0 -> 108088 bytes .../resizeToAvoidBottomInset-true.png | Bin 0 -> 81535 bytes .../src/widgets/scaffold_golden_test.dart | 31 +++ 10 files changed, 220 insertions(+), 33 deletions(-) create mode 100644 forui/test/golden/scaffold/resizeToAvoidBottomInset-false.png create mode 100644 forui/test/golden/scaffold/resizeToAvoidBottomInset-true.png diff --git a/.idea/runConfigurations/Run_Samples_build_runner.xml b/.idea/runConfigurations/Run_Samples_build_runner.xml index 3c23e848e..8eb264cf2 100644 --- a/.idea/runConfigurations/Run_Samples_build_runner.xml +++ b/.idea/runConfigurations/Run_Samples_build_runner.xml @@ -1,6 +1,6 @@ -