Fix offline symbol on AppBar

This commit is contained in:
2026-02-06 17:30:46 +01:00
parent a70c634d35
commit b62ed98375

View File

@@ -194,14 +194,17 @@ class _HomePageState extends State<HomePage> with RouteAware {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return Scaffold(
appBar: AppBar( appBar: AppBar(
title: const Text('Sheetless'), title: Row(
actions: [ mainAxisSize: MainAxisSize.min,
if (!_isOnline) children: [
const Padding( const Text('Sheetless'),
padding: EdgeInsets.only(right: 8), if (!_isOnline)
child: Icon(Icons.cloud_off, color: Colors.orange), const Padding(
), padding: EdgeInsets.only(left: 8),
], child: Icon(Icons.cloud_off, color: Colors.orange, size: 20),
),
],
),
), ),
endDrawer: AppDrawer( endDrawer: AppDrawer(
isShuffling: _isShuffling, isShuffling: _isShuffling,