Skip to content

Commit

Permalink
Merge pull request #17 from vedang8/main
Browse files Browse the repository at this point in the history
Updated  splace_screen.dart
  • Loading branch information
om1512 committed Oct 14, 2023
2 parents 41f8c00 + cd8b604 commit 0ac7f2c
Showing 1 changed file with 45 additions and 33 deletions.
78 changes: 45 additions & 33 deletions lib/Screens/splace_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ class SplaceScreen extends StatefulWidget {
}

class _SplaceScreenState extends State<SplaceScreen> {
bool isLoading = true; // making a loading variable

@override
void initState() {
super.initState();
Expand All @@ -24,47 +26,57 @@ class _SplaceScreenState extends State<SplaceScreen> {
SizeConfig().init(context);
return Scaffold(
backgroundColor: Color.fromRGBO(241, 243, 244, 1),
body: Container(
child: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Image.asset(
'assets/images/LOGO.png',
width: 130,
height: 130,
),
SizedBox(
height: 30,
),
Text(
'DU Hacks',
style: kRalewayMedium.copyWith(
fontSize: SizeConfig.blockSizeHorizontal! * 5,
color: kBlue),
),
SizedBox(
height: 5,
body: Stack(
alignment: Alignment.center,
children: [
Container(
child: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
// Your app's logo or splash image
Image.asset(
'assets/images/LOGO.png',
width: 150, // Adjust the size to your preference
height: 150,
),
SizedBox(height: 30),
Text(
'DU Hacks',
style: TextStyle(
fontSize: 36, // Adjust the font size
fontWeight: FontWeight.bold,
color: Colors.blue, // Use a professional color
),
),
SizedBox(height: 10),
Text(
'Get your creative hats on and join us on this\nincredible ride to build something out of the box.',
style: TextStyle(
fontSize: 16, // Adjust the font size
color: Colors.grey, // Use a neutral color
),
textAlign: TextAlign.center,
),
SizedBox(height: 50),
],
),
Text(
'Get your creative hats on and join us on this\n incredible ride to build something out of the box.',
style: kRalewayMedium.copyWith(
fontSize: SizeConfig.blockSizeHorizontal! * 3,
),
textAlign: TextAlign.center,
),
SizedBox(
height: 50,
),
],
),
),
),
if (isLoading)
CircularProgressIndicator(
valueColor: AlwaysStoppedAnimation<Color>(Colors.blue),
),
],
),
);
}

void timer(BuildContext context) {
Timer(const Duration(seconds: 3), () {
setState(() {
isLoading = false; // after 3s, it must stop
});
Navigator.pushReplacement(
context,
MaterialPageRoute(
Expand Down

0 comments on commit 0ac7f2c

Please sign in to comment.