Prepare more of dev for use_super_parameters (#101073)

This commit is contained in:
Michael Goderbauer
2022-03-30 14:05:05 -07:00
committed by GitHub
parent 75baed585e
commit ca2d60e8e2
109 changed files with 215 additions and 253 deletions

View File

@@ -10,7 +10,7 @@ import 'stock_strings.dart';
/// The translations for English (`en`).
class StockStringsEn extends StockStrings {
StockStringsEn([String locale = 'en']) : super(locale);
StockStringsEn([super.locale = 'en']);
@override
String get title => 'Stocks';

View File

@@ -10,7 +10,7 @@ import 'stock_strings.dart';
/// The translations for Spanish Castilian (`es`).
class StockStringsEs extends StockStrings {
StockStringsEs([String locale = 'es']) : super(locale);
StockStringsEs([super.locale = 'es']);
@override
String get title => 'Acciones';

View File

@@ -20,7 +20,7 @@ import 'stock_symbol_viewer.dart';
import 'stock_types.dart';
class StocksApp extends StatefulWidget {
const StocksApp({Key? key}) : super(key: key);
const StocksApp({super.key});
@override
StocksAppState createState() => StocksAppState();

View File

@@ -56,7 +56,7 @@ class StockArrowPainter extends CustomPainter {
}
class StockArrow extends StatelessWidget {
const StockArrow({ Key? key, required this.percentChange }) : super(key: key);
const StockArrow({ super.key, required this.percentChange });
final double percentChange;

View File

@@ -52,7 +52,7 @@ class _NotImplementedDialog extends StatelessWidget {
}
class StockHome extends StatefulWidget {
const StockHome(this.stocks, this.configuration, this.updater, {Key? key}) : super(key: key);
const StockHome(this.stocks, this.configuration, this.updater, {super.key});
final StockData stocks;
final StockConfiguration configuration;

View File

@@ -9,12 +9,12 @@ import 'stock_row.dart';
class StockList extends StatelessWidget {
const StockList({
Key? key,
super.key,
required this.stocks,
required this.onOpen,
required this.onShow,
required this.onAction,
}) : super(key: key);
});
final List<Stock> stocks;
final StockRowActionCallback onOpen;

View File

@@ -7,7 +7,7 @@ import 'package:flutter/material.dart';
import 'stock_types.dart';
class StockSettings extends StatefulWidget {
const StockSettings(this.configuration, this.updater, {Key? key}) : super(key: key);
const StockSettings(this.configuration, this.updater, {super.key});
final StockConfiguration configuration;
final ValueChanged<StockConfiguration> updater;

View File

@@ -69,10 +69,10 @@ class _StockSymbolView extends StatelessWidget {
class StockSymbolPage extends StatelessWidget {
const StockSymbolPage({
Key? key,
super.key,
required this.symbol,
required this.stocks,
}) : super(key: key);
});
final String symbol;
final StockData stocks;
@@ -121,9 +121,9 @@ class StockSymbolPage extends StatelessWidget {
class StockSymbolBottomSheet extends StatelessWidget {
const StockSymbolBottomSheet({
Key? key,
super.key,
required this.stock,
}) : super(key: key);
});
final Stock stock;