ssh page: rm appbar

This commit is contained in:
lollipopkit
2023-01-29 15:11:01 +08:00
parent 47861b1e0b
commit 49f9b0b179
11 changed files with 162 additions and 107 deletions

View File

@@ -174,9 +174,8 @@ class _PkgManagePageState extends State<PkgManagePage>
}
return ListView(
padding: const EdgeInsets.all(13),
children: [
_buildUpdatePanel(apt)
].map((e) => RoundRectCard(e)).toList(),
children:
[_buildUpdatePanel(apt)].map((e) => RoundRectCard(e)).toList(),
);
}),
);
@@ -193,32 +192,30 @@ class _PkgManagePageState extends State<PkgManagePage>
);
}
return ExpansionTile(
title: Text(_s.foundNUpdate(apt.upgradeable!.length)),
subtitle: Text(
apt.upgradeable!.map((e) => e.package).join(', '),
maxLines: 1,
overflow: TextOverflow.ellipsis,
style: grey,
),
children: apt.upgradeLog == null
? [
TextButton(
child: Text(_s.updateAll),
onPressed: () {
apt.upgrade();
}),
...apt.upgradeable!
.map((e) => _buildUpdateItem(e, apt))
.toList()
]
: [
SingleChildScrollView(
padding: const EdgeInsets.all(18),
controller: _scrollController,
child: Text(apt.upgradeLog!),
)
],
);
title: Text(_s.foundNUpdate(apt.upgradeable!.length)),
subtitle: Text(
apt.upgradeable!.map((e) => e.package).join(', '),
maxLines: 1,
overflow: TextOverflow.ellipsis,
style: grey,
),
children: apt.upgradeLog == null
? [
TextButton(
child: Text(_s.updateAll),
onPressed: () {
apt.upgrade();
}),
...apt.upgradeable!.map((e) => _buildUpdateItem(e, apt)).toList()
]
: [
SingleChildScrollView(
padding: const EdgeInsets.all(18),
controller: _scrollController,
child: Text(apt.upgradeLog!),
)
],
);
}
Widget _buildUpdateItem(UpgradePkgInfo info, PkgProvider apt) {

View File

@@ -95,6 +95,7 @@ class _SSHPageState extends State<SSHPage> {
terminal,
keyboardType: TextInputType.visiblePassword,
theme: termTheme,
onSecondaryTapUp: (p0, p1) {},
keyboardAppearance: isDark ? Brightness.dark : Brightness.light,
),
),