fix(mobile): new album icon has different height to existing album cover (#5422)

This commit is contained in:
Quek 2023-12-05 03:26:17 +08:00 committed by GitHub
parent 6111bf157e
commit ca1be71bca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -135,18 +135,24 @@ class LibraryPage extends HookConsumerWidget {
}
Widget buildCreateAlbumButton() {
return LayoutBuilder(
builder: (context, constraints) {
var cardSize = constraints.maxWidth;
return GestureDetector(
onTap: () {
context.autoPush(CreateAlbumRoute(isSharedAlbum: false));
},
child: Padding(
padding: const EdgeInsets.only(bottom: 32),
padding:
const EdgeInsets.only(bottom: 32), // Adjust padding to suit
child: Column(
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Expanded(
child: Container(
Container(
width: cardSize,
height: cardSize,
decoration: BoxDecoration(
border: Border.all(
color: isDarkTheme
@ -164,7 +170,6 @@ class LibraryPage extends HookConsumerWidget {
),
),
),
),
Padding(
padding: const EdgeInsets.only(
top: 8.0,
@ -179,6 +184,8 @@ class LibraryPage extends HookConsumerWidget {
),
),
);
},
);
}
Widget buildLibraryNavButton(