22 lines
765 B
Dart
22 lines
765 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 SQLiteStorageHelper db = SQLiteStorageHelper();
|
|
final String userDevUUID =
|
|
await db.get('userDevUUID').then((value) => value.toString());
|
|
|
|
notifyListeners();
|
|
Share.share(
|
|
FFLocalizations.of(context).getVariableText(
|
|
ptText: 'Este é o meu identificador de acesso: ${userDevUUID}',
|
|
enText: 'This is my access identifier: ${userDevUUID}',
|
|
),
|
|
);
|
|
}
|
|
}
|