flutter-freaccess-hub/lib/pages/reception_page/reception_page_model.dart

20 lines
671 B
Dart

import 'package:flutter/material.dart';
import 'package:hub/app_state.dart';
import 'package:hub/flutter_flow/internationalization.dart';
import 'package:hub/shared/helpers/sqlite_storage_helper.dart';
import 'package:share_plus/share_plus.dart';
class ReceptionPageModel with ChangeNotifier {
Future<void> getIdenfifier(BuildContext context) async {
final String userDevUUID = SQLiteStorageHelper().userDevUUID;
notifyListeners();
Share.share(
FFLocalizations.of(context).getVariableText(
ptText: 'Este é o meu identificador de acesso: ${userDevUUID}',
enText: 'This is my access identifier: ${userDevUUID}',
),
);
}
}