Merge pull request #102 from krawieck/smaller-tweaks

This commit is contained in:
Marcin Wojnarowski 2021-01-09 17:36:33 +01:00 committed by GitHub
commit 8b034a5292
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 13 deletions

View File

@ -117,16 +117,18 @@ class InstancePage extends HookWidget {
children: [ children: [
Padding( Padding(
padding: const EdgeInsets.only(top: 40), padding: const EdgeInsets.only(top: 40),
child: FullscreenableImage( child: site.site.icon == null
url: site.site.icon, ? const SizedBox(height: 100, width: 100)
child: CachedNetworkImage( : FullscreenableImage(
width: 100, url: site.site.icon,
height: 100, child: CachedNetworkImage(
imageUrl: site.site.icon, width: 100,
errorWidget: (_, __, ___) => height: 100,
const Icon(Icons.warning), imageUrl: site.site.icon,
), errorWidget: (_, __, ___) =>
), const Icon(Icons.warning),
),
),
), ),
Text(site.site.name, Text(site.site.name,
style: theme.textTheme.headline6), style: theme.textTheme.headline6),

View File

@ -18,9 +18,12 @@ class BottomModal extends StatelessWidget {
child: Container( child: Container(
padding: title != null ? const EdgeInsets.only(top: 10) : null, padding: title != null ? const EdgeInsets.only(top: 10) : null,
decoration: BoxDecoration( decoration: BoxDecoration(
color: theme.scaffoldBackgroundColor, color: theme.scaffoldBackgroundColor,
borderRadius: const BorderRadius.all(Radius.circular(10)), borderRadius: const BorderRadius.all(Radius.circular(10)),
), border: Border.all(
color: Colors.grey.withOpacity(0.5),
width: 0.2,
)),
child: Column( child: Column(
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,