You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

39 lines
947 B

import 'package:flutter/material.dart';
class StartPage extends StatefulWidget {
// final bool isFirst;
//
// StartPage(this.isFirst);
@override
State<StatefulWidget> createState() {
return _StartPage();
}
}
class _StartPage extends State<StartPage> {
@override
Widget build(BuildContext context) {
return Container(
color: Colors.white,
width: double.infinity,
height: double.infinity,
child: Image.asset(
"assets/image/ic_splash_bg.webp",
width: double.infinity,
height: double.infinity,
// fit: BoxFit.cover,
),
);
}
@override
void initState() {
super.initState();
Future.delayed(Duration(seconds:2), () {
// Navigator.of(context).popAndPushNamed((widget.isFirst ?? true) ?
// '/router/guide_Page' : '/router/new_login_page');
Navigator.of(context).popAndPushNamed('/router/main_page');
});
}
}