Skip to content

Commit

Permalink
Fixed analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
guyluz11 committed Nov 7, 2024
1 parent 281f5ae commit c6ffb0f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lib/infrastructure/core/logger.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import 'package:logger/logger.dart';
/// Instance of logger for all the app
final logger = Logger(
filter: ProductionFilter(),
printer: PrettyPrinter(methodCount: 0, printTime: true),
printer: PrettyPrinter(methodCount: 0),
);
3 changes: 1 addition & 2 deletions lib/presentation/atoms/card_atom.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import 'package:flutter/material.dart';
import 'package:flutter_svg/svg.dart';
import 'package:infinite_horizons/domain/controllers/controllers.dart';
import 'package:infinite_horizons/presentation/core/theme_data.dart';

import '../../domain/controllers/vibration_controller.dart';

class CardAtom extends StatelessWidget {
const CardAtom({required this.child, this.onClick, this.image});

Expand Down
7 changes: 5 additions & 2 deletions lib/presentation/molecules/alert_dialog_molecule.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@ import 'package:infinite_horizons/presentation/atoms/atoms.dart';
import 'package:infinite_horizons/presentation/core/global_variables.dart';
import 'package:infinite_horizons/presentation/core/theme_data.dart';

void openAlertDialog(BuildContext context, Widget body,
{VoidCallback? onConfirm}) {
void openAlertDialog(
BuildContext context,
Widget body, {
VoidCallback? onConfirm,
}) {
showDialog(
context: context,
builder: (_) => DialogMolecule(body, onConfirm: onConfirm),
Expand Down
6 changes: 3 additions & 3 deletions lib/presentation/pages/activity_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class _ActivityPageState extends State<ActivityPage>
);
}

Future<bool> onWillPop() async {
Future<bool> onWillPop(bool didPop, dynamic result) async {
if (_currentTabNum == 0) {
backToHomePopup();
} else {
Expand Down Expand Up @@ -191,8 +191,8 @@ class _ActivityPageState extends State<ActivityPage>

@override
Widget build(BuildContext context) {
return WillPopScope(
onWillPop: onWillPop,
return PopScope(
onPopInvokedWithResult: onWillPop,
child: Scaffold(
body: PageView(
onPageChanged: (index) {
Expand Down

0 comments on commit c6ffb0f

Please sign in to comment.