21 lines
752 B
Dart
21 lines
752 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:hub/flutter_flow/internationalization.dart';
|
|
import 'package:hub/shared/helpers/base_storage.dart';
|
|
import 'package:hub/shared/helpers/storage_helper.dart';
|
|
import 'package:share_plus/share_plus.dart';
|
|
|
|
class ReceptionPageModel with ChangeNotifier {
|
|
Future<void> getIdenfifier(BuildContext context) async {
|
|
final String userDevUUID =
|
|
(await StorageHelper.instance.get(SQLiteStorageKey.userDevUUID.value, Storage.SQLiteStorage)) ?? '';
|
|
|
|
notifyListeners();
|
|
Share.share(
|
|
FFLocalizations.of(context).getVariableText(
|
|
ptText: 'Este é o meu identificador de acesso: $userDevUUID',
|
|
enText: 'This is my access identifier: $userDevUUID',
|
|
),
|
|
);
|
|
}
|
|
}
|