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> { ...@@ -25,13 +25,17 @@ class _SplashState extends State<Splash> {
// TODO: implement initState // TODO: implement initState
super.initState(); super.initState();
splashImage = Image.asset("assets/images/ic_splash.jpg"); splashImage = Image.asset("assets/images/ic_splash.jpg");
requestPermissions(); WidgetsBinding.instance.addPostFrameCallback((_) {
final spalshProvider = Provider.of<SplashVersionNotifier>( requestPermissions();
context, final spalshProvider = Provider.of<SplashVersionNotifier>(
listen: false, context,
); listen: false,
spalshProvider.initPackageInfo(); );
spalshProvider.handleVersionCheck(context); spalshProvider.initPackageInfo();
spalshProvider.handleVersionCheck(context);
},);
} }
void requestPermissions() async { void requestPermissions() async {
...@@ -139,6 +143,7 @@ class _SplashState extends State<Splash> { ...@@ -139,6 +143,7 @@ class _SplashState extends State<Splash> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return Scaffold(
resizeToAvoidBottomInset: true,
body: Consumer<SplashVersionNotifier>( body: Consumer<SplashVersionNotifier>(
builder: (context, value, child) { builder: (context, value, child) {
return Container( return Container(
......
...@@ -104,7 +104,7 @@ class ApiCalling { ...@@ -104,7 +104,7 @@ class ApiCalling {
try { try {
final response = await post({}, getAppVersionUrl, {}); final response = await post({}, getAppVersionUrl, {});
if (response != null) { if (response != null) {
// print("${response.body}"); print("${response.body}");
return VersionsResponse.fromJson(jsonDecode(response.body)); return VersionsResponse.fromJson(jsonDecode(response.body));
} else { } else {
return null; return null;
...@@ -432,7 +432,7 @@ class ApiCalling { ...@@ -432,7 +432,7 @@ class ApiCalling {
}; };
final res = await post(data, genTrackerGeneratorDetailsUrl, {}); final res = await post(data, genTrackerGeneratorDetailsUrl, {});
if (res != null) { if (res != null) {
// debugPrint(res.body); debugPrint(res.body);
return loadGeneratorDetailsResponse.fromJson(jsonDecode(res.body)); return loadGeneratorDetailsResponse.fromJson(jsonDecode(res.body));
} else { } else {
debugPrint("Null Response"); 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