mirror of
https://github.com/revanced/revanced-manager.git
synced 2025-05-10 18:04:25 +02:00
fix: Readd padding between Application Items
This commit is contained in:
parent
d0293f5412
commit
e374e03355
@ -60,64 +60,68 @@ class _ApplicationItemState extends State<ApplicationItem>
|
|||||||
hasIcon: false,
|
hasIcon: false,
|
||||||
animationDuration: Duration(milliseconds: 450),
|
animationDuration: Duration(milliseconds: 450),
|
||||||
),
|
),
|
||||||
header: CustomCard(
|
header: Padding(
|
||||||
onTap: () {
|
padding: const EdgeInsets.only(bottom: 16.0),
|
||||||
expController.toggle();
|
child: CustomCard(
|
||||||
_animationController.isCompleted
|
onTap: () {
|
||||||
? _animationController.reverse()
|
expController.toggle();
|
||||||
: _animationController.forward();
|
_animationController.isCompleted
|
||||||
},
|
? _animationController.reverse()
|
||||||
child: Row(
|
: _animationController.forward();
|
||||||
children: <Widget>[
|
},
|
||||||
SizedBox(
|
child: Row(
|
||||||
width: 40,
|
children: <Widget>[
|
||||||
child: Image.memory(widget.icon, height: 40, width: 40),
|
SizedBox(
|
||||||
),
|
width: 40,
|
||||||
const SizedBox(width: 4),
|
child: Image.memory(widget.icon, height: 40, width: 40),
|
||||||
Padding(
|
),
|
||||||
padding: const EdgeInsets.only(left: 15.0),
|
const SizedBox(width: 4),
|
||||||
child: Column(
|
Padding(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
padding: const EdgeInsets.only(left: 15.0),
|
||||||
children: <Widget>[
|
child: Column(
|
||||||
Text(
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
widget.name.length > 9
|
children: <Widget>[
|
||||||
? '${widget.name.substring(0, 9)}...'
|
Text(
|
||||||
: widget.name,
|
widget.name.length > 9
|
||||||
style: const TextStyle(
|
? '${widget.name.substring(0, 9)}...'
|
||||||
fontSize: 16,
|
: widget.name,
|
||||||
fontWeight: FontWeight.w500,
|
style: const TextStyle(
|
||||||
|
fontSize: 16,
|
||||||
|
fontWeight: FontWeight.w500,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
|
Text(format(widget.patchDate)),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
const Spacer(),
|
||||||
|
RotationTransition(
|
||||||
|
turns:
|
||||||
|
Tween(begin: 0.0, end: 0.50).animate(_animationController),
|
||||||
|
child: const Padding(
|
||||||
|
padding: EdgeInsets.all(8.0),
|
||||||
|
child: Icon(Icons.arrow_drop_down),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
Column(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.end,
|
||||||
|
children: <Widget>[
|
||||||
|
CustomMaterialButton(
|
||||||
|
label: widget.isUpdatableApp
|
||||||
|
? I18nText('applicationItem.patchButton')
|
||||||
|
: I18nText('applicationItem.infoButton'),
|
||||||
|
onPressed: widget.onPressed,
|
||||||
),
|
),
|
||||||
Text(format(widget.patchDate)),
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
],
|
||||||
const Spacer(),
|
),
|
||||||
RotationTransition(
|
|
||||||
turns: Tween(begin: 0.0, end: 0.50).animate(_animationController),
|
|
||||||
child: const Padding(
|
|
||||||
padding: EdgeInsets.all(8.0),
|
|
||||||
child: Icon(Icons.arrow_drop_down),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
Column(
|
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
|
||||||
crossAxisAlignment: CrossAxisAlignment.end,
|
|
||||||
children: <Widget>[
|
|
||||||
CustomMaterialButton(
|
|
||||||
label: widget.isUpdatableApp
|
|
||||||
? I18nText('applicationItem.patchButton')
|
|
||||||
: I18nText('applicationItem.infoButton'),
|
|
||||||
onPressed: widget.onPressed,
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
collapsed: const SizedBox(),
|
collapsed: const SizedBox(),
|
||||||
expanded: Padding(
|
expanded: Padding(
|
||||||
padding: const EdgeInsets.symmetric(vertical: 16.0, horizontal: 16.0),
|
padding: const EdgeInsets.all(16.0).copyWith(top: 0.0),
|
||||||
child: Column(
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
|
Loading…
x
Reference in New Issue
Block a user