Skip to content

Commit

Permalink
Resolve lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
landarskiy committed Mar 3, 2024
1 parent 0bdf983 commit 00f6948
Show file tree
Hide file tree
Showing 8 changed files with 52 additions and 55 deletions.
4 changes: 2 additions & 2 deletions example/lib/components/blueprint.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import 'package:flutter/material.dart';
import '../theme.dart';

class BlueprintBox extends StatelessWidget {
const BlueprintBox({Key? key}) : super(key: key);
const BlueprintBox({super.key});

@override
Widget build(BuildContext context) {
Expand All @@ -29,7 +29,7 @@ class BlueprintBox extends StatelessWidget {
class ContentBlueprintBox extends StatelessWidget {
final String text;

const ContentBlueprintBox({Key? key, this.text = ''}) : super(key: key);
const ContentBlueprintBox({super.key, this.text = ''});

@override
Widget build(BuildContext context) {
Expand Down
8 changes: 4 additions & 4 deletions example/lib/components/engineering_calculator_pad.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import 'package:grid_pad/grid_pad.dart';
import 'pad_button.dart';

class EngineeringCalculatorPad extends StatelessWidget {
const EngineeringCalculatorPad({Key? key}) : super(key: key);
const EngineeringCalculatorPad({super.key});

@override
Widget build(BuildContext context) {
Expand Down Expand Up @@ -124,7 +124,7 @@ class EngineeringCalculatorPadTheme {
class _FunctionTheme extends StatelessWidget {
final Widget child;

const _FunctionTheme({Key? key, required this.child}) : super(key: key);
const _FunctionTheme({required this.child});

@override
Widget build(BuildContext context) {
Expand All @@ -144,7 +144,7 @@ class _FunctionTheme extends StatelessWidget {
class _ActionTheme extends StatelessWidget {
final Widget child;

const _ActionTheme({Key? key, required this.child}) : super(key: key);
const _ActionTheme({required this.child});

@override
Widget build(BuildContext context) {
Expand All @@ -164,7 +164,7 @@ class _ActionTheme extends StatelessWidget {
class _RemoveTheme extends StatelessWidget {
final Widget child;

const _RemoveTheme({Key? key, required this.child}) : super(key: key);
const _RemoveTheme({required this.child});

@override
Widget build(BuildContext context) {
Expand Down
2 changes: 1 addition & 1 deletion example/lib/components/interactive_pin_pad.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import 'package:flutter/material.dart';
import 'pin_pad.dart';

class InteractivePinPad extends StatefulWidget {
const InteractivePinPad({Key? key}) : super(key: key);
const InteractivePinPad({super.key});

@override
State<InteractivePinPad> createState() => _InteractivePinPadState();
Expand Down
23 changes: 11 additions & 12 deletions example/lib/components/pad_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ class IconPadButton extends StatelessWidget {

const IconPadButton(
this.iconData, {
Key? key,
super.key,
this.onPressed,
}) : super(key: key);
});

@override
Widget build(BuildContext context) {
Expand All @@ -31,9 +31,9 @@ class LargeTextPadButton extends StatelessWidget {

const LargeTextPadButton(
this.text, {
Key? key,
super.key,
this.onPressed,
}) : super(key: key);
});

@override
Widget build(BuildContext context) {
Expand All @@ -51,9 +51,9 @@ class MediumTextPadButton extends StatelessWidget {

const MediumTextPadButton(
this.text, {
Key? key,
super.key,
this.onPressed,
}) : super(key: key);
});

@override
Widget build(BuildContext context) {
Expand All @@ -71,9 +71,9 @@ class SmallTextPadButton extends StatelessWidget {

const SmallTextPadButton(
this.text, {
Key? key,
super.key,
this.onPressed,
}) : super(key: key);
});

@override
Widget build(BuildContext context) {
Expand All @@ -91,11 +91,11 @@ class TextPadButton extends StatelessWidget {
final VoidCallback? onPressed;

const TextPadButton({
Key? key,
super.key,
required this.text,
this.style,
this.onPressed,
}) : super(key: key);
});

@override
Widget build(BuildContext context) {
Expand All @@ -115,8 +115,7 @@ class PadButton extends StatelessWidget {
final Widget child;
final VoidCallback? onPressed;

const PadButton({Key? key, this.onPressed, required this.child})
: super(key: key);
const PadButton({super.key, this.onPressed, required this.child});

@override
Widget build(BuildContext context) {
Expand Down
2 changes: 1 addition & 1 deletion example/lib/components/pin_pad.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import 'pad_button.dart';
class PinPad extends StatelessWidget {
final PadActionCallback? callback;

const PinPad({Key? key, this.callback}) : super(key: key);
const PinPad({super.key, this.callback});

@override
Widget build(BuildContext context) {
Expand Down
6 changes: 3 additions & 3 deletions example/lib/components/simple_calculator_pad.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import 'package:grid_pad/grid_pad.dart';
import 'pad_button.dart';

class SimpleCalculatorPad extends StatelessWidget {
const SimpleCalculatorPad({Key? key}) : super(key: key);
const SimpleCalculatorPad({super.key});

@override
Widget build(BuildContext context) {
Expand Down Expand Up @@ -105,7 +105,7 @@ extension _ThemeExtension on BuildContext {
class _ActionTheme extends StatelessWidget {
final Widget child;

const _ActionTheme({Key? key, required this.child}) : super(key: key);
const _ActionTheme({required this.child});

@override
Widget build(BuildContext context) {
Expand All @@ -125,7 +125,7 @@ class _ActionTheme extends StatelessWidget {
class _RemoveTheme extends StatelessWidget {
final Widget child;

const _RemoveTheme({Key? key, required this.child}) : super(key: key);
const _RemoveTheme({required this.child});

@override
Widget build(BuildContext context) {
Expand Down
6 changes: 3 additions & 3 deletions example/lib/components/simple_priority_calculator_pad.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import 'package:grid_pad/grid_pad.dart';
import 'pad_button.dart';

class SimplePriorityCalculatorPad extends StatelessWidget {
const SimplePriorityCalculatorPad({Key? key}) : super(key: key);
const SimplePriorityCalculatorPad({super.key});

@override
Widget build(BuildContext context) {
Expand Down Expand Up @@ -117,7 +117,7 @@ extension _ThemeExtension on BuildContext {
class _ActionTheme extends StatelessWidget {
final Widget child;

const _ActionTheme({Key? key, required this.child}) : super(key: key);
const _ActionTheme({required this.child});

@override
Widget build(BuildContext context) {
Expand All @@ -137,7 +137,7 @@ class _ActionTheme extends StatelessWidget {
class _RemoveTheme extends StatelessWidget {
final Widget child;

const _RemoveTheme({Key? key, required this.child}) : super(key: key);
const _RemoveTheme({required this.child});

@override
Widget build(BuildContext context) {
Expand Down
Loading

0 comments on commit 00f6948

Please sign in to comment.