From 91e6a4f6a253e6a30ae1284dec289274fb90b0e1 Mon Sep 17 00:00:00 2001 From: Caleb Jasik Date: Thu, 23 Jan 2025 16:25:59 -0600 Subject: [PATCH] Use platform-specific canvas color for SimplePage + platform-specific icons (#231) * Use platform-specific canvas color for SimplePage * Use platform-specific icon for MainScreen appbar --- lib/components/SimplePage.dart | 3 +-- lib/screens/MainScreen.dart | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/components/SimplePage.dart b/lib/components/SimplePage.dart index 31bb9c4..cc00d2e 100644 --- a/lib/components/SimplePage.dart +++ b/lib/components/SimplePage.dart @@ -1,4 +1,3 @@ -import 'package:flutter/cupertino.dart' as cupertino; import 'package:flutter/material.dart'; import 'package:flutter_platform_widgets/flutter_platform_widgets.dart'; import 'package:mobile_nebula/services/utils.dart'; @@ -99,7 +98,7 @@ class SimplePage extends StatelessWidget { } return PlatformScaffold( - backgroundColor: cupertino.CupertinoColors.systemGroupedBackground.resolveFrom(context), + backgroundColor: Theme.of(context).canvasColor, appBar: PlatformAppBar( title: title, leading: leadingAction != null ? leadingAction : Utils.leadingBackWidget(context), diff --git a/lib/screens/MainScreen.dart b/lib/screens/MainScreen.dart index d4d70ef..6684e03 100644 --- a/lib/screens/MainScreen.dart +++ b/lib/screens/MainScreen.dart @@ -157,7 +157,7 @@ class _MainScreenState extends State { trailingActions: [ PlatformIconButton( padding: EdgeInsets.zero, - icon: Icon(Icons.menu, size: 28.0), + icon: Icon(Icons.adaptive.more, size: 28.0), onPressed: () => Utils.openPage(context, (_) => SettingsScreen(widget.dnEnrollStream)), ), ],