diff --git a/lib/screen/truth_or_dare/home.dart b/lib/screen/truth_or_dare/home.dart index ed95ff6..ed8df4a 100644 --- a/lib/screen/truth_or_dare/home.dart +++ b/lib/screen/truth_or_dare/home.dart @@ -234,7 +234,7 @@ class Home extends StatelessWidget { child: FlatButton( color: ColorBase.kPrimaryColor, onPressed: () { - BlocProvider.of(context).add(GetTruth()); + BlocProvider.of(context).add(GetTruth(selectedLevel:state is TruthLoaded? state.selectedLevel:-1)); }, child: Row( mainAxisAlignment: MainAxisAlignment.center, @@ -266,7 +266,7 @@ class Home extends StatelessWidget { child: OutlineButton( borderSide: BorderSide(color: ColorBase.kPrimaryColor), onPressed: () { - BlocProvider.of(context).add(GetDare()); + BlocProvider.of(context).add(GetDare(selectedLevel:state is DareLoaded? state.selectedLevel:-1)); }, child: Row( mainAxisAlignment: MainAxisAlignment.center,