dart fix --apply --code=unnecessary_new

This commit is contained in:
Caleb Jasik 2025-02-13 11:17:28 -06:00
parent 20961b2ea0
commit b4ba6bb726
No known key found for this signature in database
4 changed files with 4 additions and 4 deletions

View file

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

View file

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

View file

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

View file

@ -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();