Commit a41737ae by Ramesh Babu Puvvadi

added few changes

parent 03eaf7ea
...@@ -36,9 +36,9 @@ class LoginPage extends StatelessWidget { ...@@ -36,9 +36,9 @@ class LoginPage extends StatelessWidget {
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
const SizedBox(height: 30), const SizedBox(height: 30),
// GifImage( // GifImage(
// image: AssetImage('assets/sample.gif'), // Replace with your actual GIF image path // image: AssetImage('assets/sample.gif'), // Replace with your actual GIF image path
// ), // ),
GifView.asset( GifView.asset(
'assets/images/login.gif', 'assets/images/login.gif',
height: 350, height: 350,
......
...@@ -19,11 +19,10 @@ class UserPreferences { ...@@ -19,11 +19,10 @@ class UserPreferences {
} }
class SplashScreen extends StatefulWidget { class SplashScreen extends StatefulWidget {
const SplashScreen({Key? key}) : super(key: key); const SplashScreen({Key? key}) : super(key: key);
@override @override
_SplashScreenState createState() => _SplashScreenState(); _SplashScreenState createState() => _SplashScreenState();
} }
class _SplashScreenState extends State<SplashScreen> { class _SplashScreenState extends State<SplashScreen> {
...@@ -38,26 +37,17 @@ class _SplashScreenState extends State<SplashScreen> { ...@@ -38,26 +37,17 @@ class _SplashScreenState extends State<SplashScreen> {
print(isLoggedIn); print(isLoggedIn);
} }
if (isLoggedIn) { if (isLoggedIn) {
Navigator.pushReplacement( Navigator.pushReplacement(
context, context,
MaterialPageRoute( MaterialPageRoute(
builder: (context) => const Home( builder: (context) => const Home(
message: 'success', message: 'success',
) )));
)
);
// Navigator.pushAndRemoveUntil(
// context,
// MaterialPageRoute(builder: (context) => MyHomePage()),
// (Route<dynamic> route) => false,
// );
} else { } else {
//print('else condition :${isLoggedIn}'); //print('else condition :${isLoggedIn}');
Navigator.pushAndRemoveUntil( Navigator.pushAndRemoveUntil(
context, context,
MaterialPageRoute(builder: (context) => const LoginPage()), MaterialPageRoute(builder: (context) => const LoginPage()),
(Route<dynamic> route) => false, (Route<dynamic> route) => false,
); );
} }
......
...@@ -124,7 +124,7 @@ class RemoteData { ...@@ -124,7 +124,7 @@ class RemoteData {
// } // }
// } // }
Future<String?> EmpUploadVideo( Future<String?> empuploadVideo(
File imagepath, String filename, String storename) async { File imagepath, String filename, String storename) async {
try { try {
//final request = http.MultipartRequest( 'POST', Uri.parse('https://plutokm.com/grc_capture_image2.php?barcode=$barcode&boothno=$no&updatesiblings=$siblings')); //final request = http.MultipartRequest( 'POST', Uri.parse('https://plutokm.com/grc_capture_image2.php?barcode=$barcode&boothno=$no&updatesiblings=$siblings'));
......
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