Improve animation by using SKSL

This commit is contained in:
Junyuan Feng
2022-04-15 19:21:40 +08:00
parent 4274e8bed1
commit c524db9f59
7 changed files with 48 additions and 31 deletions

View File

@@ -63,18 +63,18 @@ class _AptManagePageState extends State<AptManagePage>
apt.refreshInstalled();
return centerLoading;
}
if (!apt.isSU) {
return Center(
child: Text(
'Only supported as root. Not "${apt.whoami}".',
style: greyStyle,
),
);
}
return ListView(
padding: const EdgeInsets.all(13),
children:
[_buildUpdatePanel(apt)].map((e) => RoundRectCard(e)).toList(),
children: [
const Padding(
padding: EdgeInsets.all(17),
child: Text(
'Experimental features.\nPlease report bugs on Github Issue.',
textAlign: TextAlign.center,
),
),
_buildUpdatePanel(apt)
].map((e) => RoundRectCard(e)).toList(),
);
}),
);