minor fixes

This commit is contained in:
Adrian Baumgart 2024-07-26 23:00:03 +02:00
parent 50ec0cb49f
commit c5ab724a9e
No known key found for this signature in database

View File

@ -172,7 +172,7 @@ class _ShortURLEditViewState extends State<ShortURLEditView>
), ),
SliverToBoxAdapter( SliverToBoxAdapter(
child: Padding( child: Padding(
padding: EdgeInsets.only(top: 16, left: 8, right: 8), padding: const EdgeInsets.only(top: 16, left: 8, right: 8),
child: Wrap( child: Wrap(
runSpacing: 16, runSpacing: 16,
children: [ children: [
@ -223,8 +223,11 @@ class _ShortURLEditViewState extends State<ShortURLEditView>
)), )),
), ),
), ),
const SizedBox(width: 8),
RotationTransition( if (widget.shortUrl == null)
Container(
padding: const EdgeInsets.only(left: 8),
child: RotationTransition(
turns: Tween(begin: 0.0, end: 3.0).animate( turns: Tween(begin: 0.0, end: 3.0).animate(
CurvedAnimation( CurvedAnimation(
parent: _customSlugDiceAnimationController, parent: _customSlugDiceAnimationController,
@ -247,10 +250,11 @@ class _ShortURLEditViewState extends State<ShortURLEditView>
icon: Icon( icon: Icon(
randomSlug ? Icons.casino : Icons.casino_outlined, randomSlug ? Icons.casino : Icons.casino_outlined,
color: randomSlug ? Colors.green : Colors.grey)), color: randomSlug ? Colors.green : Colors.grey)),
),
) )
], ],
), ),
if (randomSlug) if (randomSlug && widget.shortUrl == null)
Row( Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [ children: [
@ -379,6 +383,7 @@ class _ShortURLEditViewState extends State<ShortURLEditView>
) )
], ],
), ),
const SizedBox(height: 150)
], ],
), ),
) )