perbaikan on possale string 1
This commit is contained in:
@@ -1245,7 +1245,7 @@ class _PosSaleScreenState extends ConsumerState<PosSaleScreen> {
|
||||
}
|
||||
|
||||
// Navigate to the next screen if permission is granted
|
||||
bool result = await Navigator.push(
|
||||
bool? result = await Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(
|
||||
builder: (context) => AddSalesScreen(
|
||||
@@ -1256,7 +1256,7 @@ class _PosSaleScreenState extends ConsumerState<PosSaleScreen> {
|
||||
);
|
||||
|
||||
// Handle result after returning from AddSalesScreen
|
||||
if (result) {
|
||||
if (result == true) {
|
||||
_searchController.clear();
|
||||
selectedCustomer = null;
|
||||
setState(() {});
|
||||
|
||||
Reference in New Issue
Block a user