Compare commits

...

3 commits

Author SHA1 Message Date
Ian VanSchooten
db1f162f1e
Fetch more commits for Sentry releases (#209) 2024-12-18 16:28:28 -05:00
Ian VanSchooten
afc3abd633
Set ConfigItem label text style correctly (#208)
* Set ConfigItem label text style correctly

* Add right padding for chevrons
2024-12-18 16:12:24 -05:00
Ian VanSchooten
a449a650c3
Fix deep links (#207) 2024-12-18 10:26:46 -05:00
4 changed files with 45 additions and 41 deletions

View file

@ -15,6 +15,7 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
show-progress: false show-progress: false
fetch-depth: 25 # For sentry releases
- name: Set up Go 1.22 - name: Set up Go 1.22
uses: actions/setup-go@v5 uses: actions/setup-go@v5

View file

@ -1,3 +1,5 @@
import 'dart:io';
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:mobile_nebula/services/utils.dart'; import 'package:mobile_nebula/services/utils.dart';
@ -25,7 +27,12 @@ class ConfigItem extends StatelessWidget {
child: Row( child: Row(
crossAxisAlignment: crossAxisAlignment, crossAxisAlignment: crossAxisAlignment,
children: <Widget>[ children: <Widget>[
Container(width: labelWidth, child: label), Container(
width: labelWidth,
child: Platform.isAndroid
? label
: DefaultTextStyle(
style: CupertinoTheme.of(context).textTheme.textStyle, child: Container(child: label))),
Expanded(child: content), Expanded(child: content),
], ],
)); ));

View file

@ -45,7 +45,7 @@ class ConfigPageItem extends StatelessWidget {
onPressed: this.disabled ? null : onPressed, onPressed: this.disabled ? null : onPressed,
color: Utils.configItemBackground(context), color: Utils.configItemBackground(context),
child: Container( child: Container(
padding: EdgeInsets.only(left: 15), padding: EdgeInsets.only(left: 15, right: 15),
constraints: BoxConstraints(minHeight: Utils.minInteractiveSize, minWidth: double.infinity), constraints: BoxConstraints(minHeight: Utils.minInteractiveSize, minWidth: double.infinity),
child: Row( child: Row(
crossAxisAlignment: crossAxisAlignment, crossAxisAlignment: crossAxisAlignment,

View file

@ -94,11 +94,8 @@ class _AppState extends State<App> {
), ),
); );
return MaterialApp( return PlatformProvider(
theme: brightness == Brightness.light ? lightTheme : darkTheme, settings: PlatformSettingsData(iosUsesMaterialWidgets: true),
home: Scaffold(
body: PlatformProvider(
//initialPlatform: initialPlatform,
builder: (context) => PlatformApp( builder: (context) => PlatformApp(
debugShowCheckedModeBanner: false, debugShowCheckedModeBanner: false,
localizationsDelegates: <LocalizationsDelegate<dynamic>>[ localizationsDelegates: <LocalizationsDelegate<dynamic>>[
@ -110,6 +107,7 @@ class _AppState extends State<App> {
material: (_, __) { material: (_, __) {
return new MaterialAppData( return new MaterialAppData(
themeMode: brightness == Brightness.light ? ThemeMode.light : ThemeMode.dark, themeMode: brightness == Brightness.light ? ThemeMode.light : ThemeMode.dark,
theme: brightness == Brightness.light ? lightTheme : darkTheme,
); );
}, },
cupertino: (_, __) => CupertinoAppData( cupertino: (_, __) => CupertinoAppData(
@ -133,8 +131,6 @@ class _AppState extends State<App> {
return null; return null;
}, },
), ),
),
),
); );
} }
} }