mirror of
https://github.com/DefinedNet/mobile_nebula.git
synced 2025-02-23 11:35:26 +00:00
dart fix --apply --code=unnecessary_new
This commit is contained in:
parent
20961b2ea0
commit
b4ba6bb726
4 changed files with 4 additions and 4 deletions
|
@ -99,7 +99,7 @@ class _AppState extends State<App> {
|
||||||
],
|
],
|
||||||
title: 'Nebula',
|
title: 'Nebula',
|
||||||
material: (_, __) {
|
material: (_, __) {
|
||||||
return new MaterialAppData(
|
return MaterialAppData(
|
||||||
themeMode: brightness == Brightness.light ? ThemeMode.light : ThemeMode.dark,
|
themeMode: brightness == Brightness.light ? ThemeMode.light : ThemeMode.dark,
|
||||||
theme: brightness == Brightness.light ? theme.light() : theme.dark(),
|
theme: brightness == Brightness.light ? theme.light() : theme.dark(),
|
||||||
);
|
);
|
||||||
|
|
|
@ -223,7 +223,7 @@ class _AddCertificateScreenState extends State<AddCertificateScreen> {
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
var result = await Navigator.push(
|
var result = await Navigator.push(
|
||||||
context,
|
context,
|
||||||
platformPageRoute(context: context, builder: (context) => new ScanQRScreen()),
|
platformPageRoute(context: context, builder: (context) => ScanQRScreen()),
|
||||||
);
|
);
|
||||||
if (result != null) {
|
if (result != null) {
|
||||||
_addCertEntry(result);
|
_addCertEntry(result);
|
||||||
|
|
|
@ -236,7 +236,7 @@ class _CAListScreenState extends State<CAListScreen> {
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
var result = await Navigator.push(
|
var result = await Navigator.push(
|
||||||
context,
|
context,
|
||||||
platformPageRoute(context: context, builder: (context) => new ScanQRScreen()),
|
platformPageRoute(context: context, builder: (context) => ScanQRScreen()),
|
||||||
);
|
);
|
||||||
if (result != null) {
|
if (result != null) {
|
||||||
_addCAEntry(result, (err) {
|
_addCAEntry(result, (err) {
|
||||||
|
|
|
@ -104,7 +104,7 @@ class _SiteConfigScreenState extends State<SiteConfigScreen> {
|
||||||
Widget _debugConfig() {
|
Widget _debugConfig() {
|
||||||
var data = "";
|
var data = "";
|
||||||
try {
|
try {
|
||||||
final encoder = new JsonEncoder.withIndent(' ');
|
final encoder = JsonEncoder.withIndent(' ');
|
||||||
data = encoder.convert(site);
|
data = encoder.convert(site);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
data = err.toString();
|
data = err.toString();
|
||||||
|
|
Loading…
Reference in a new issue