diff --git a/lib/common/apifunctions/request_login_api.dart b/lib/common/apifunctions/request_login_api.dart index 2c3e566..25c4926 100644 --- a/lib/common/apifunctions/request_login_api.dart +++ b/lib/common/apifunctions/request_login_api.dart @@ -23,7 +23,7 @@ Future requestLoginAPI( final response = await http.post( url, - body: body, + body: json.encode(body), ); debugPrint(response.body); diff --git a/lib/pages/spash_screen.dart b/lib/pages/spash_screen.dart index 8a27131..955e730 100644 --- a/lib/pages/spash_screen.dart +++ b/lib/pages/spash_screen.dart @@ -15,7 +15,7 @@ class _SplashScreenState extends State { startTime() async { return Timer(Duration(seconds: splashDuration), () { SystemChannels.textInput.invokeMethod('TextInput.hide'); - Navigator.of(context).pushReplacementNamed('/HomePage'); + Navigator.of(context).pushReplacementNamed('/LoginPage'); }); }