Skip to content

Commit

Permalink
save level
Browse files Browse the repository at this point in the history
  • Loading branch information
ardi27 committed Feb 27, 2021
1 parent c62deba commit 5af05c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/screen/truth_or_dare/home.dart
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ class Home extends StatelessWidget {
child: FlatButton(
color: ColorBase.kPrimaryColor,
onPressed: () {
BlocProvider.of<TruthOrDareBloc>(context).add(GetTruth());
BlocProvider.of<TruthOrDareBloc>(context).add(GetTruth(selectedLevel:state is TruthLoaded? state.selectedLevel:-1));
},
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
Expand Down Expand Up @@ -266,7 +266,7 @@ class Home extends StatelessWidget {
child: OutlineButton(
borderSide: BorderSide(color: ColorBase.kPrimaryColor),
onPressed: () {
BlocProvider.of<TruthOrDareBloc>(context).add(GetDare());
BlocProvider.of<TruthOrDareBloc>(context).add(GetDare(selectedLevel:state is DareLoaded? state.selectedLevel:-1));
},
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
Expand Down

0 comments on commit 5af05c4

Please sign in to comment.