reuire personal selected param in migh_calc

This commit is contained in:
2025-03-05 09:52:28 +02:00
parent af1258803b
commit 28bf9de41f
3 changed files with 19 additions and 9 deletions

View File

@@ -9,7 +9,11 @@ import 'package:flutter/material.dart';
import 'package:flutter_swipe_detector/flutter_swipe_detector.dart';
class MIHCalculator extends StatefulWidget {
const MIHCalculator({super.key});
final bool personalSelected;
const MIHCalculator({
super.key,
required this.personalSelected,
});
@override
State<MIHCalculator> createState() => _MIHCalculatorState();
@@ -26,7 +30,7 @@ class _MIHCalculatorState extends State<MIHCalculator> {
Navigator.of(context).pop();
Navigator.of(context).popAndPushNamed(
'/',
arguments: AuthArguments(true, false),
arguments: AuthArguments(widget.personalSelected, false),
);
},
);

View File

@@ -280,7 +280,7 @@ class _MIHHomeState extends State<MIHHome> {
onTap: () {
Navigator.of(context).pushNamed(
'/calculator',
//arguments: widget.signedInUser,
arguments: widget.personalSelected,
);
},
tileName: "Calculator",
@@ -486,7 +486,7 @@ class _MIHHomeState extends State<MIHHome> {
onTap: () {
Navigator.of(context).pushNamed(
'/calculator',
//arguments: widget.signedInUser,
arguments: widget.personalSelected,
);
},
tileName: "Calculator",