From e158dd0cec5657e495b538e86c412b06974a9f49 Mon Sep 17 00:00:00 2001 From: Kingkor Roy Tirtho Date: Thu, 5 Jan 2023 18:26:52 +0600 Subject: [PATCH] fix(about): license text hidden in the bottom of smaller screen devices --- lib/pages/library/library.dart | 2 +- lib/pages/settings/about.dart | 8 +++++--- pubspec.lock | 2 +- pubspec.yaml | 1 + 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/lib/pages/library/library.dart b/lib/pages/library/library.dart index cc10567d1..8329089ea 100644 --- a/lib/pages/library/library.dart +++ b/lib/pages/library/library.dart @@ -23,7 +23,7 @@ class LibraryPage extends HookConsumerWidget { const UserAlbums(), ][index.value]; - var tabbar = PlatformTabBar( + final tabbar = PlatformTabBar( androidIsScrollable: true, selectedIndex: index.value, onSelectedIndexChanged: (value) => index.value = value, diff --git a/lib/pages/settings/about.dart b/lib/pages/settings/about.dart index eb5e6697a..6c67fe8c7 100644 --- a/lib/pages/settings/about.dart +++ b/lib/pages/settings/about.dart @@ -167,9 +167,11 @@ class AboutSpotube extends HookConsumerWidget { const SizedBox(height: 20), ConstrainedBox( constraints: const BoxConstraints(maxWidth: 750), - child: PlatformText.caption( - licenseText, - textAlign: TextAlign.justify, + child: SafeArea( + child: PlatformText.caption( + licenseText, + textAlign: TextAlign.justify, + ), ), ), ], diff --git a/pubspec.lock b/pubspec.lock index dc376758c..181de6af2 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -616,7 +616,7 @@ packages: source: hosted version: "1.59.0" flutter_svg: - dependency: transitive + dependency: "direct main" description: name: flutter_svg url: "https://pub.dartlang.org" diff --git a/pubspec.yaml b/pubspec.yaml index 16211af9f..a8bd8b532 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -67,6 +67,7 @@ dependencies: macos_ui: ^1.7.5 libadwaita: ^1.2.5 adwaita: ^0.5.2 + flutter_svg: ^1.1.6 dev_dependencies: flutter_test: