fix(about): license text hidden in the bottom of smaller screen devices

This commit is contained in:
Kingkor Roy Tirtho 2023-01-05 18:26:52 +06:00
parent db12f6c649
commit e158dd0cec
4 changed files with 8 additions and 5 deletions

View File

@ -23,7 +23,7 @@ class LibraryPage extends HookConsumerWidget {
const UserAlbums(), const UserAlbums(),
][index.value]; ][index.value];
var tabbar = PlatformTabBar( final tabbar = PlatformTabBar(
androidIsScrollable: true, androidIsScrollable: true,
selectedIndex: index.value, selectedIndex: index.value,
onSelectedIndexChanged: (value) => index.value = value, onSelectedIndexChanged: (value) => index.value = value,

View File

@ -167,9 +167,11 @@ class AboutSpotube extends HookConsumerWidget {
const SizedBox(height: 20), const SizedBox(height: 20),
ConstrainedBox( ConstrainedBox(
constraints: const BoxConstraints(maxWidth: 750), constraints: const BoxConstraints(maxWidth: 750),
child: PlatformText.caption( child: SafeArea(
licenseText, child: PlatformText.caption(
textAlign: TextAlign.justify, licenseText,
textAlign: TextAlign.justify,
),
), ),
), ),
], ],

View File

@ -616,7 +616,7 @@ packages:
source: hosted source: hosted
version: "1.59.0" version: "1.59.0"
flutter_svg: flutter_svg:
dependency: transitive dependency: "direct main"
description: description:
name: flutter_svg name: flutter_svg
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"

View File

@ -67,6 +67,7 @@ dependencies:
macos_ui: ^1.7.5 macos_ui: ^1.7.5
libadwaita: ^1.2.5 libadwaita: ^1.2.5
adwaita: ^0.5.2 adwaita: ^0.5.2
flutter_svg: ^1.1.6
dev_dependencies: dev_dependencies:
flutter_test: flutter_test: