mirror of
https://github.com/flutter/samples.git
synced 2026-04-07 20:21:51 +00:00
Some linting_tool updates and cleanup (#1279)
This commit is contained in:
@@ -12,6 +12,7 @@ import 'package:provider/provider.dart';
|
||||
|
||||
class SavedRuleTile extends StatefulWidget {
|
||||
final Rule rule;
|
||||
|
||||
const SavedRuleTile({
|
||||
required this.rule,
|
||||
super.key,
|
||||
@@ -27,8 +28,8 @@ class _SavedRuleTileState extends State<SavedRuleTile> {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
var theme = Theme.of(context);
|
||||
var textTheme = theme.textTheme;
|
||||
final theme = Theme.of(context);
|
||||
final textTheme = theme.textTheme;
|
||||
final rule = widget.rule;
|
||||
final incompatibleString =
|
||||
rule.incompatible.isNotEmpty ? rule.incompatible.join(', ') : 'none';
|
||||
|
||||
Reference in New Issue
Block a user