change the main list to row
This commit is contained in:
@ -4,16 +4,23 @@ import 'package:url_launcher/url_launcher.dart';
|
||||
import '../../../app/app.logger.dart';
|
||||
import '../../../app/core/custom_base_view_model.dart';
|
||||
import '../../../model/istilah_model.dart';
|
||||
import '../../../model/istilah_model1.dart';
|
||||
|
||||
class NomorTelponDialogViewModel extends CustomBaseViewModel {
|
||||
final log = getLogger('NomorTelponDialogViewModel');
|
||||
TextEditingController nomorTelponController = TextEditingController();
|
||||
final formKey = GlobalKey<FormState>();
|
||||
IstilahModel? data;
|
||||
Future<void> init(IstilahModel data) async {
|
||||
log.i('init');
|
||||
log.i(data.istilah.toString());
|
||||
log.i(data.arti.toString());
|
||||
Future<void> init(dynamic data) async {
|
||||
log.i(data);
|
||||
if (data is IstilahModel1) {
|
||||
log.i("data is IstilahModel1");
|
||||
// change data to IstilahModel
|
||||
data = IstilahModel(
|
||||
istilah: data.istilah,
|
||||
arti: data.arti,
|
||||
);
|
||||
}
|
||||
this.data = data;
|
||||
// await myStorage.clear();
|
||||
}
|
||||
|
Reference in New Issue
Block a user