mirror of
https://github.com/DefinedNet/mobile_nebula.git
synced 2025-02-22 19:15:27 +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',
|
||||
material: (_, __) {
|
||||
return new MaterialAppData(
|
||||
return MaterialAppData(
|
||||
themeMode: brightness == Brightness.light ? ThemeMode.light : ThemeMode.dark,
|
||||
theme: brightness == Brightness.light ? theme.light() : theme.dark(),
|
||||
);
|
||||
|
|
|
@ -223,7 +223,7 @@ class _AddCertificateScreenState extends State<AddCertificateScreen> {
|
|||
onPressed: () async {
|
||||
var result = await Navigator.push(
|
||||
context,
|
||||
platformPageRoute(context: context, builder: (context) => new ScanQRScreen()),
|
||||
platformPageRoute(context: context, builder: (context) => ScanQRScreen()),
|
||||
);
|
||||
if (result != null) {
|
||||
_addCertEntry(result);
|
||||
|
|
|
@ -236,7 +236,7 @@ class _CAListScreenState extends State<CAListScreen> {
|
|||
onPressed: () async {
|
||||
var result = await Navigator.push(
|
||||
context,
|
||||
platformPageRoute(context: context, builder: (context) => new ScanQRScreen()),
|
||||
platformPageRoute(context: context, builder: (context) => ScanQRScreen()),
|
||||
);
|
||||
if (result != null) {
|
||||
_addCAEntry(result, (err) {
|
||||
|
|
|
@ -104,7 +104,7 @@ class _SiteConfigScreenState extends State<SiteConfigScreen> {
|
|||
Widget _debugConfig() {
|
||||
var data = "";
|
||||
try {
|
||||
final encoder = new JsonEncoder.withIndent(' ');
|
||||
final encoder = JsonEncoder.withIndent(' ');
|
||||
data = encoder.convert(site);
|
||||
} catch (err) {
|
||||
data = err.toString();
|
||||
|
|
Loading…
Reference in a new issue