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