Commit 528df0d2 authored by Sai Srinivas's avatar Sai Srinivas
Browse files

14-05-2025 By Sai Srinivas

All UI Adjustments and Font Sizes
parent fd946558
This diff is collapsed.
This diff is collapsed.
......@@ -25,13 +25,17 @@ class _SplashState extends State<Splash> {
// TODO: implement initState
super.initState();
splashImage = Image.asset("assets/images/ic_splash.jpg");
requestPermissions();
final spalshProvider = Provider.of<SplashVersionNotifier>(
context,
listen: false,
);
spalshProvider.initPackageInfo();
spalshProvider.handleVersionCheck(context);
WidgetsBinding.instance.addPostFrameCallback((_) {
requestPermissions();
final spalshProvider = Provider.of<SplashVersionNotifier>(
context,
listen: false,
);
spalshProvider.initPackageInfo();
spalshProvider.handleVersionCheck(context);
},);
}
void requestPermissions() async {
......@@ -139,6 +143,7 @@ class _SplashState extends State<Splash> {
@override
Widget build(BuildContext context) {
return Scaffold(
resizeToAvoidBottomInset: true,
body: Consumer<SplashVersionNotifier>(
builder: (context, value, child) {
return Container(
......
......@@ -104,7 +104,7 @@ class ApiCalling {
try {
final response = await post({}, getAppVersionUrl, {});
if (response != null) {
// print("${response.body}");
print("${response.body}");
return VersionsResponse.fromJson(jsonDecode(response.body));
} else {
return null;
......@@ -432,7 +432,7 @@ class ApiCalling {
};
final res = await post(data, genTrackerGeneratorDetailsUrl, {});
if (res != null) {
// debugPrint(res.body);
debugPrint(res.body);
return loadGeneratorDetailsResponse.fromJson(jsonDecode(res.body));
} else {
debugPrint("Null Response");
......
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment