add check token 25%

This commit is contained in:
2025-03-06 21:27:06 +01:00
parent 5c2a58e484
commit e7afe8fddb
7 changed files with 40 additions and 6 deletions

View File

@@ -13,6 +13,7 @@ import '../variable/globals.dart' as globals;
import '../classes/ad_helper.dart';
import 'package:google_mobile_ads/google_mobile_ads.dart';
import '../classes/auth_service.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
@@ -39,6 +40,7 @@ class AddProfile extends StatefulWidget {
class _AddProfileState extends State<AddProfile> with ShowAlertDialog {
BannerAd? _bannerAd;
final AuthService _authService = AuthService();
TextEditingController inputUserName = TextEditingController();
@@ -140,6 +142,8 @@ class _AddProfileState extends State<AddProfile> with ShowAlertDialog {
@override
void initState() {
super.initState();
_authService.checkTokenStatus(context);
AdHelper.createBannerAd(() => setState(() {})).then((ad) {
setState(() {
_bannerAd = ad;