mirror of
https://github.com/DefinedNet/mobile_nebula.git
synced 2025-09-07 19:46:06 +00:00
Compare commits
3 commits
c97732d1be
...
db1f162f1e
Author | SHA1 | Date | |
---|---|---|---|
|
db1f162f1e | ||
|
afc3abd633 | ||
|
a449a650c3 |
4 changed files with 45 additions and 41 deletions
1
.github/workflows/release.yml
vendored
1
.github/workflows/release.yml
vendored
|
@ -15,6 +15,7 @@ jobs:
|
|||
uses: actions/checkout@v4
|
||||
with:
|
||||
show-progress: false
|
||||
fetch-depth: 25 # For sentry releases
|
||||
|
||||
- name: Set up Go 1.22
|
||||
uses: actions/setup-go@v5
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
import 'dart:io';
|
||||
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:mobile_nebula/services/utils.dart';
|
||||
|
@ -25,7 +27,12 @@ class ConfigItem extends StatelessWidget {
|
|||
child: Row(
|
||||
crossAxisAlignment: crossAxisAlignment,
|
||||
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),
|
||||
],
|
||||
));
|
||||
|
|
|
@ -45,7 +45,7 @@ class ConfigPageItem extends StatelessWidget {
|
|||
onPressed: this.disabled ? null : onPressed,
|
||||
color: Utils.configItemBackground(context),
|
||||
child: Container(
|
||||
padding: EdgeInsets.only(left: 15),
|
||||
padding: EdgeInsets.only(left: 15, right: 15),
|
||||
constraints: BoxConstraints(minHeight: Utils.minInteractiveSize, minWidth: double.infinity),
|
||||
child: Row(
|
||||
crossAxisAlignment: crossAxisAlignment,
|
||||
|
|
|
@ -94,11 +94,8 @@ class _AppState extends State<App> {
|
|||
),
|
||||
);
|
||||
|
||||
return MaterialApp(
|
||||
theme: brightness == Brightness.light ? lightTheme : darkTheme,
|
||||
home: Scaffold(
|
||||
body: PlatformProvider(
|
||||
//initialPlatform: initialPlatform,
|
||||
return PlatformProvider(
|
||||
settings: PlatformSettingsData(iosUsesMaterialWidgets: true),
|
||||
builder: (context) => PlatformApp(
|
||||
debugShowCheckedModeBanner: false,
|
||||
localizationsDelegates: <LocalizationsDelegate<dynamic>>[
|
||||
|
@ -110,6 +107,7 @@ class _AppState extends State<App> {
|
|||
material: (_, __) {
|
||||
return new MaterialAppData(
|
||||
themeMode: brightness == Brightness.light ? ThemeMode.light : ThemeMode.dark,
|
||||
theme: brightness == Brightness.light ? lightTheme : darkTheme,
|
||||
);
|
||||
},
|
||||
cupertino: (_, __) => CupertinoAppData(
|
||||
|
@ -133,8 +131,6 @@ class _AppState extends State<App> {
|
|||
return null;
|
||||
},
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue