mirror of
https://github.com/rainloreley/shlink-manager.git
synced 2024-11-24 10:33:03 +01:00
minor fixes
This commit is contained in:
parent
50ec0cb49f
commit
c5ab724a9e
|
@ -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,34 +223,38 @@ class _ShortURLEditViewState extends State<ShortURLEditView>
|
||||||
)),
|
)),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(width: 8),
|
|
||||||
RotationTransition(
|
if (widget.shortUrl == null)
|
||||||
turns: Tween(begin: 0.0, end: 3.0).animate(
|
Container(
|
||||||
CurvedAnimation(
|
padding: const EdgeInsets.only(left: 8),
|
||||||
parent: _customSlugDiceAnimationController,
|
child: RotationTransition(
|
||||||
curve: Curves.easeInOutExpo)),
|
turns: Tween(begin: 0.0, end: 3.0).animate(
|
||||||
child: IconButton(
|
CurvedAnimation(
|
||||||
onPressed: disableSlugEditor
|
parent: _customSlugDiceAnimationController,
|
||||||
? null
|
curve: Curves.easeInOutExpo)),
|
||||||
: () {
|
child: IconButton(
|
||||||
if (randomSlug) {
|
onPressed: disableSlugEditor
|
||||||
_customSlugDiceAnimationController.reverse(
|
? null
|
||||||
from: 1);
|
: () {
|
||||||
} else {
|
if (randomSlug) {
|
||||||
_customSlugDiceAnimationController.forward(
|
_customSlugDiceAnimationController.reverse(
|
||||||
from: 0);
|
from: 1);
|
||||||
}
|
} else {
|
||||||
setState(() {
|
_customSlugDiceAnimationController.forward(
|
||||||
randomSlug = !randomSlug;
|
from: 0);
|
||||||
});
|
}
|
||||||
},
|
setState(() {
|
||||||
icon: Icon(
|
randomSlug = !randomSlug;
|
||||||
randomSlug ? Icons.casino : Icons.casino_outlined,
|
});
|
||||||
color: randomSlug ? Colors.green : Colors.grey)),
|
},
|
||||||
)
|
icon: Icon(
|
||||||
|
randomSlug ? Icons.casino : Icons.casino_outlined,
|
||||||
|
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)
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user