23 lines
774 B
Dart
23 lines
774 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/db_helper.dart';
|
|
import 'package:share_plus/share_plus.dart';
|
|
|
|
class ReceptionPageModel with ChangeNotifier {
|
|
Future<void> getIdenfifier(BuildContext context) async {
|
|
final DatabaseHelper db = DatabaseHelper();
|
|
final String userDevUUID = await db
|
|
.get(key: 'userDevUUID', field: 'value')
|
|
.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}',
|
|
),
|
|
);
|
|
}
|
|
}
|