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) {
|
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,
|
||||||
|
|||||||
Reference in New Issue
Block a user