update carton form and add recent search
This commit is contained in:
@@ -13,6 +13,8 @@ import 'package:fcs/pagination/paginator_listener.dart';
|
||||
import 'package:logging/logging.dart';
|
||||
import 'package:path/path.dart' as Path;
|
||||
|
||||
import '../../../helpers/shared_pref.dart';
|
||||
|
||||
class PackageModel extends BaseModel {
|
||||
final log = Logger('PackageModel');
|
||||
|
||||
@@ -214,7 +216,10 @@ class PackageModel extends BaseModel {
|
||||
return packages;
|
||||
}
|
||||
|
||||
Future<List<User>> searchUser(String term) {
|
||||
Future<List<User>> searchUser(String term) async {
|
||||
if (term != '') {
|
||||
await SharedPref.saveRecentSearch('account_search', term);
|
||||
}
|
||||
return Services.instance.userService.searchUser(term);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user