flutter_tba_info 0.0.5
flutter_tba_info: ^0.0.5 copied to clipboard
Request Info
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:flutter_tba_info/flutter_tba_info.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatefulWidget {
const MyApp({super.key});
@override
State<MyApp> createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
String dis="";
@override
void initState() {
super.initState();
_request();
}
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('Plugin example app'),
),
body: Center(
child: InkWell(
onTap: (){
},
child: Text('Running on: $dis'),
),
),
),
);
}
_request()async{
dis=await FlutterTbaInfo.instance.getDistinctId();
setState(() {
});
}
}