this is my code in this doesn't create an RFID card and pk pass I want to create an RFID/NFC card in my app and create a pk pass file and add it to the apple wallet I search several websites but I didn't find that error inside it. if you face this kind of problems please help me
final _saveCard = StreamBuilder(
stream: bloc.savecardValid,
builder: (context, snapshot) {
return Container(
width: MediaQuery.of(context).size.width - 40,
height: 50,
child: RaisedButton(
child: Text(
'Save Card',
style: TextStyle(color: Colors.white),
),
color: Colors.lightBlue,
onPressed: snapshot.hasData
? () {
var blocProviderCardWallet = BlocProvider(
bloc: bloc,
child: CardWallet(),
);
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => blocProviderCardWallet));
}
: null,
),
);
},
);