Nuevos cambios hechos de diseño
This commit is contained in:
17
desarrollo2/source_code/lib/custom/route_transaction.dart
Normal file
17
desarrollo2/source_code/lib/custom/route_transaction.dart
Normal file
@@ -0,0 +1,17 @@
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class MyTransaction{
|
||||
BuildContext? context;
|
||||
MyTransaction({this.context});
|
||||
|
||||
Future<bool> push(Widget route)async{
|
||||
var value= await Navigator.push(
|
||||
context!,
|
||||
MaterialPageRoute(builder: (context) {
|
||||
return route;
|
||||
}),
|
||||
);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user