Skip to content

Commit

Permalink
fix lint rule
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-sneha-s committed Apr 2, 2024
1 parent ec2a412 commit 901098c
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 19 deletions.
5 changes: 2 additions & 3 deletions khelo/lib/components/app_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ class AppPage extends StatelessWidget {
}
}

Widget _cupertino(BuildContext context) =>
CupertinoPageScaffold(
Widget _cupertino(BuildContext context) => CupertinoPageScaffold(
navigationBar: (title == null && titleWidget == null) &&
actions == null &&
leading == null
Expand Down Expand Up @@ -91,4 +90,4 @@ class AppPage extends StatelessWidget {
overflow: TextOverflow.ellipsis,
style: const TextStyle(fontFamily: AppTextStyle.interFontFamily),
);
}
}
10 changes: 5 additions & 5 deletions khelo/lib/components/error_snackbar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import 'package:flutter/material.dart';
import 'package:fluttertoast/fluttertoast.dart';

void showSnackBar(
BuildContext context,
String text, {
SnackBarLength length = SnackBarLength.short,
}) {
BuildContext context,
String text, {
SnackBarLength length = SnackBarLength.short,
}) {
if (Platform.isIOS) {
Fluttertoast.showToast(
msg: text,
Expand All @@ -31,4 +31,4 @@ enum SnackBarLength {
final int seconds;

const SnackBarLength(this.seconds);
}
}
7 changes: 5 additions & 2 deletions khelo/lib/components/match_status_tag.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ import 'package:style/text/app_text_style.dart';

class MatchStatusTag extends StatelessWidget {
final MatchStatus status;
const MatchStatusTag({super.key, required this.status,});
const MatchStatusTag({
super.key,
required this.status,
});

@override
Widget build(BuildContext context) {
Expand All @@ -19,7 +22,7 @@ class MatchStatusTag extends StatelessWidget {
child: Text(
status.getString(context),
style:
AppTextStyle.body2.copyWith(color: context.colorScheme.textPrimary),
AppTextStyle.body2.copyWith(color: context.colorScheme.textPrimary),
),
);
}
Expand Down
2 changes: 1 addition & 1 deletion khelo/lib/domain/extensions/enum_extensions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -210,4 +210,4 @@ extension TeamFilterOptionString on TeamFilterOption {
return context.l10n.team_list_me_as_member_title;
}
}
}
}
2 changes: 1 addition & 1 deletion khelo/lib/domain/extensions/string_extensions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ extension EmailValidator on String {
r'^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$')
.hasMatch(this);
}
}
}
2 changes: 1 addition & 1 deletion khelo/lib/ui/flow/home/home_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class _HomeScreenState extends State<HomeScreen> {
child: Text(
"Home",
style:
AppTextStyle.header4.copyWith(color: context.colorScheme.primary),
AppTextStyle.header4.copyWith(color: context.colorScheme.primary),
),
);
}
Expand Down
3 changes: 2 additions & 1 deletion khelo/lib/ui/flow/matches/match_list_view_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ class MatchListViewNotifier extends StateNotifier<MatchListViewState> {
state = state.copyWith(matches: matches, loading: false);
} catch (e, stack) {
state = state.copyWith(loading: false, error: e);
debugPrint("MatchListViewNotifier: error while load matches -> $e ,\nstack: $stack");
debugPrint(
"MatchListViewNotifier: error while load matches -> $e ,\nstack: $stack");
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ class SignInWithPhoneCountryPicker extends ConsumerWidget {

@override
Widget build(BuildContext context, WidgetRef ref) {

final notifier = ref.watch(signInWithPhoneStateProvider.notifier);
final countryCode = ref.watch(
signInWithPhoneStateProvider.select((value) => value.code),
Expand Down Expand Up @@ -86,4 +85,4 @@ class SignInWithPhoneCountryPicker extends ConsumerWidget {
],
);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ class SignInWithPhoneViewNotifier extends StateNotifier<SignInWithPhoneState> {
state = state.copyWith(verifying: false, signInSuccess: true);
},
onVerificationFailed: (error) {
print(error);
state = state.copyWith(verifying: false, error: error);
},
onCodeSent: (verificationId, _) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -385,4 +385,4 @@ class _MatchDetailStatScreenState extends ConsumerState<MatchDetailStatScreen> {
0, (sum, element) => (sum ?? 0) + (element.extras_awarded ?? 0)) ??
0;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@ class SelectFilterOptionSheet extends ConsumerWidget {
contentPadding: const EdgeInsets.symmetric(horizontal: 16),
);
}
}
}

0 comments on commit 901098c

Please sign in to comment.