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
This commit is contained in:
Caleb Jasik 2025-01-23 16:25:59 -06:00 committed by GitHub
parent fc120053f2
commit 91e6a4f6a2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 3 deletions

View file

@ -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),

View file

@ -157,7 +157,7 @@ class _MainScreenState extends State<MainScreen> {
trailingActions: <Widget>[
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)),
),
],