Skip to content

Commit b9d3daa

Browse files
committed
reformat code
1 parent d3b4a36 commit b9d3daa

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

example/lib/main.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ class _MyAppState extends State<MyApp> {
2828
@override
2929
Widget build(BuildContext context) {
3030
return MaterialApp(
31-
localizationsDelegates: const [
32-
I18nGoogleWallet.delegate
33-
],
31+
localizationsDelegates: const [I18nGoogleWallet.delegate],
3432
home: Scaffold(
3533
appBar: AppBar(
3634
title: const Text('Plugin example app'),

lib/widget/add_to_google_wallet_button.dart

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,13 @@ class AddtoGoogleWalletButton extends StatelessWidget {
1010
final bool removeSvgPackage;
1111

1212
const AddtoGoogleWalletButton(
13-
{Key? key, this.onPress, this.badgeButton = false, required this.langue, bool? removeSvgPackage})
14-
: removeSvgPackage = removeSvgPackage ?? false, super(key: key);
13+
{Key? key,
14+
this.onPress,
15+
this.badgeButton = false,
16+
required this.langue,
17+
bool? removeSvgPackage})
18+
: removeSvgPackage = removeSvgPackage ?? false,
19+
super(key: key);
1520

1621
@override
1722
Widget build(BuildContext context) {
@@ -22,8 +27,10 @@ class AddtoGoogleWalletButton extends StatelessWidget {
2227
button: true,
2328
label: '${I18nGoogleWallet.of(context).add_to} Google Wallet',
2429
child: GestureDetector(
25-
onTap: onPress,
26-
child: SvgPicture.asset(package: removeSvgPackage ? null : 'flutter_google_wallet', path)),
30+
onTap: onPress,
31+
child: SvgPicture.asset(
32+
package: removeSvgPackage ? null : 'flutter_google_wallet',
33+
path)),
2734
);
2835
}
2936
}

test/langue_utils_test.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import 'package:flutter_google_wallet/utils/langue_utils.dart';
22
import 'package:flutter_test/flutter_test.dart';
33

44
void main() {
5-
test('GIVEN locale THEN normalizedLocale() return normalized locale', () async {
5+
test('GIVEN locale THEN normalizedLocale() return normalized locale',
6+
() async {
67
expect(normalizedLocale(locale: 'fr'), 'frFR');
78
expect(normalizedLocale(locale: 'de'), 'de');
89
expect(normalizedLocale(locale: 'en'), 'enGB');

0 commit comments

Comments
 (0)