Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
MrCyjaneK committed Nov 3, 2024
1 parent 8d5fbba commit ada4e2f
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions lib/views/create_wallet.dart
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class CreateWallet extends AbstractView {
text: L.next,
icon: null,
onPressed: () => _next(context),
backgroundColor: const MaterialStatePropertyAll(Colors.green),
backgroundColor: const WidgetStatePropertyAll(Colors.green),
textColor: Colors.white,
),
LongPrimaryButton(
Expand All @@ -124,7 +124,7 @@ class CreateWallet extends AbstractView {
onPressed: () {
viewModel.toggleAdvancedOptions();
}, // TODO: passphrase
backgroundColor: const MaterialStatePropertyAll(Colors.transparent),
backgroundColor: const WidgetStatePropertyAll(Colors.transparent),
),
const SizedBox(height: 16),
],
Expand Down
10 changes: 5 additions & 5 deletions lib/views/initial_setup_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ class LongSecondaryButton extends LongPrimaryButton {
required super.onPressed});

@override
MaterialStateProperty<Color>? get backgroundColor =>
const MaterialStatePropertyAll(Colors.white);
WidgetStateProperty<Color>? get backgroundColor =>
const WidgetStatePropertyAll(Colors.white);

@override
Color get textColor => onBackgroundColor;
Expand All @@ -96,7 +96,7 @@ class LongPrimaryButton extends StatelessWidget {
});

final padding;
final MaterialStateProperty<Color>? backgroundColor;
final WidgetStateProperty<Color>? backgroundColor;
final Color textColor;

final String text;
Expand All @@ -114,8 +114,8 @@ class LongPrimaryButton extends StatelessWidget {
child: ElevatedButton.icon(
style: Theme.of(context).elevatedButtonTheme.style?.copyWith(
backgroundColor: backgroundColor,
elevation: const MaterialStatePropertyAll(0),
side: const MaterialStatePropertyAll(
elevation: const WidgetStatePropertyAll(0),
side: const WidgetStatePropertyAll(
BorderSide(
width: 0,
color: Colors.transparent,
Expand Down
2 changes: 1 addition & 1 deletion lib/views/new_wallet_info.dart
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class NewWalletInfoScreen extends AbstractView {
textWidget: action.text,
icon: null,
onPressed: callback,
backgroundColor: MaterialStatePropertyAll(action.backgroundColor),
backgroundColor: WidgetStatePropertyAll(action.backgroundColor),
width: null,
),
);
Expand Down
2 changes: 1 addition & 1 deletion lib/views/wallet_edit.dart
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class WalletEdit extends AbstractView {
children: [
Expanded(
child: LongPrimaryButton(
backgroundColor: const MaterialStatePropertyAll(Colors.red),
backgroundColor: const WidgetStatePropertyAll(Colors.red),
icon: null,
onPressed: () {
callThrowable(
Expand Down
4 changes: 2 additions & 2 deletions lib/views/widgets/drawer_element.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ class DrawerElement extends StatelessWidget {
margin: const EdgeInsets.only(top: 5, left: 20, bottom: 5),
child: TextButton(
style: ButtonStyle(
backgroundColor: MaterialStateProperty.all(Colors.black12),
shape: MaterialStateProperty.all(
backgroundColor: WidgetStateProperty.all(Colors.black12),
shape: WidgetStateProperty.all(
const RoundedRectangleBorder(
borderRadius: BorderRadius.only(
topLeft: Radius.circular(20),
Expand Down

0 comments on commit ada4e2f

Please sign in to comment.