Skip to content

An open-source cross-platform alternative to AirDrop

fix: rail padding (#709)

Jesse2050bc1e4b1fcdd
diff --git a/app/lib/pages/home_page.dart b/app/lib/pages/home_page.dart
index 18f627c3..a69fe8bd 100644
--- a/app/lib/pages/home_page.dart
+++ b/app/lib/pages/home_page.dart
@@ -109,36 +109,37 @@ class _HomePageState extends State<HomePage> with Riverpie {
child: ResponsiveBuilder(
builder: (sizingInformation) {
return Scaffold(
- body: SafeArea(
- child: Row(
- children: [
- if (!sizingInformation.isMobile)
- NavigationRail(
- selectedIndex: _currentTab.index,
- onDestinationSelected: _goToPage,
- extended: sizingInformation.isDesktop,
- backgroundColor: Theme.of(context).cardColorWithElevation,
- leading: sizingInformation.isDesktop
- ? const Column(
- children: [
- SizedBox(height: 20),
- Text(
- 'LocalSend',
- style: TextStyle(fontSize: 32, fontWeight: FontWeight.bold),
- textAlign: TextAlign.center,
- ),
- SizedBox(height: 20),
- ],
- )
- : null,
- destinations: HomeTab.values.map((tab) {
- return NavigationRailDestination(
- icon: Icon(tab.icon),
- label: Text(tab.label),
- );
- }).toList(),
- ),
- Expanded(
+ body: Row(
+ children: [
+ if (!sizingInformation.isMobile)
+ NavigationRail(
+ selectedIndex: _currentTab.index,
+ onDestinationSelected: _goToPage,
+ extended: sizingInformation.isDesktop,
+ backgroundColor: Theme.of(context).cardColorWithElevation,
+ leading: sizingInformation.isDesktop
+ ? const Column(
+ children: [
+ SizedBox(height: 20),
+ Text(
+ 'LocalSend',
+ style: TextStyle(fontSize: 32, fontWeight: FontWeight.bold),
+ textAlign: TextAlign.center,
+ ),
+ SizedBox(height: 20),
+ ],
+ )
+ : null,
+ destinations: HomeTab.values.map((tab) {
+ return NavigationRailDestination(
+ icon: Icon(tab.icon),
+ label: Text(tab.label),
+ );
+ }).toList(),
+ ),
+ Expanded(
+ child: SafeArea(
+ left: sizingInformation.isMobile,
child: Stack(
children: [
PageView(
@@ -168,8 +169,8 @@ class _HomePageState extends State<HomePage> with Riverpie {
],
),
),
- ],
- ),
+ ),
+ ],
),
bottomNavigationBar: sizingInformation.isMobile
? NavigationBar(