init
library
Classes
U
App-wide settings and data: base URL, localized strings (U.s), user, app settings, dynamic tabs. U.s.save, U.baseUrl
UMaterialApp
MaterialApp wired for u: navigatorKey, fa/en localizations, saved theme and language that switch live. UMaterialApp(locale: const Locale("fa"), home: const HomePage(), lightThemeData: light, darkThemeData: dark)
UTabData
One tab of U.tabs: a title and its page.
Functions
initU ({String ? baseUrl , String ? apiKey , String defaultPhoneCountryCode = "IR" , int snackBarDuration = 4 , ULoadingSettings loadingSettings = const ULoadingSettings(blurAmount: 1, overlayColor: Colors.black12) , List <DeviceOrientation > deviceOrientations = const <DeviceOrientation>[DeviceOrientation.portraitUp, DeviceOrientation.portraitDown] })
→ Future <void >
Starts u (storage, device/app/network info, notifications, loading overlay, web updates); locks portrait unless you pass deviceOrientations. Call once before runApp. await initU(baseUrl: "https://api.x.com");