im not sure with the terms and really new in flutter
im not sure if im doing this right
<code>class _ViewState extends State<View> {
@override
Widget build(BuildContext context) {
return BlocListener<Bloc, State>(
listener: (context, state) {
if (state is PreviousState) {
final String name= state.email;
setState(() {});
}
},
child: Scaffold(
appBar: AppBar(
title: const Text('Verify Email'),
),
body: Container( child Text(name)
</code>
<code>class _ViewState extends State<View> {
@override
Widget build(BuildContext context) {
return BlocListener<Bloc, State>(
listener: (context, state) {
if (state is PreviousState) {
final String name= state.email;
setState(() {});
}
},
child: Scaffold(
appBar: AppBar(
title: const Text('Verify Email'),
),
body: Container( child Text(name)
</code>
class _ViewState extends State<View> {
@override
Widget build(BuildContext context) {
return BlocListener<Bloc, State>(
listener: (context, state) {
if (state is PreviousState) {
final String name= state.email;
setState(() {});
}
},
child: Scaffold(
appBar: AppBar(
title: const Text('Verify Email'),
),
body: Container( child Text(name)
but i have emitted name once i have get it from a previous view
and now i want to use it in this view
<code> on<Event>((event, emit) async {
final name = event.name;
emit(PreviosState(
name: mui,
</code>
<code> on<Event>((event, emit) async {
final name = event.name;
emit(PreviosState(
name: mui,
</code>
on<Event>((event, emit) async {
final name = event.name;
emit(PreviosState(
name: mui,
New contributor
Maui is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.