mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 15:24:35 +01:00
Improve animation by using SKSL
This commit is contained in:
@@ -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(),
|
||||
);
|
||||
}),
|
||||
);
|
||||
|
||||
@@ -104,12 +104,12 @@ class _MyHomePageState extends State<MyHomePage>
|
||||
childDecoration: const BoxDecoration(
|
||||
// NOTICE: Uncomment if you want to add shadow behind the page.
|
||||
// Keep in mind that it may cause animation jerks.
|
||||
boxShadow: <BoxShadow>[
|
||||
BoxShadow(
|
||||
color: Colors.black12,
|
||||
blurRadius: 0.0,
|
||||
),
|
||||
],
|
||||
// boxShadow: <BoxShadow>[
|
||||
// BoxShadow(
|
||||
// color: Colors.black12,
|
||||
// blurRadius: 0.0,
|
||||
// ),
|
||||
// ],
|
||||
borderRadius: BorderRadius.all(Radius.circular(16)),
|
||||
),
|
||||
drawer: _buildDrawer(),
|
||||
@@ -278,7 +278,11 @@ class _MyHomePageState extends State<MyHomePage>
|
||||
}
|
||||
|
||||
String _buildVersionStr() {
|
||||
return 'Ver: 1.0.${BuildData.build}';
|
||||
var mod = '';
|
||||
if (BuildData.modifications != 0) {
|
||||
mod = '(+${BuildData.modifications})';
|
||||
}
|
||||
return 'Ver: 1.0.${BuildData.build}$mod';
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user