updated the look and feel of the home page
This commit is contained in:
@@ -49,8 +49,13 @@ class _IntegrationScreenState extends State<IntegrationScreen> {
|
||||
listenable: controller,
|
||||
builder: (context, child) {
|
||||
if (controller.model.status == 'SUCCESS') {
|
||||
final transactionId = controller.model.transaction?['id'];
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
context.go('/receipt');
|
||||
if (transactionId != null) {
|
||||
context.go('/receipt/$transactionId');
|
||||
} else {
|
||||
context.go('/receipt');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user