Splash Screen Demo

 import "dart:async";


import "package:celloip/textFormField.dart";
import "package:flutter/material.dart";

class SplashOther extends StatefulWidget {
SplashOther({super.key});

@override
State<SplashOther> createState() {
return SplashOtherState();
}
}
class SplashOtherState extends State<SplashOther> {

@override
void initState() {
super.initState();

Timer(Duration(seconds: 1,), () {
Navigator.pushReplacement(
context,
MaterialPageRoute(
builder: (context) {
return TextFormFieldDemo();
},
),
);
},);
}

@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
decoration: BoxDecoration(
gradient: LinearGradient(
colors: [
Colors.blue,
Colors.blue.shade500,
Colors.blue.shade400,
Colors.blue.shade300,
Colors.blue.shade200,
Colors.blue.shade100,
Colors.blue.shade50,
],
),
),
child: Center(child: Text("TextFormField",
style: TextStyle(fontSize: 50.0, fontWeight: FontWeight.bold, color: Colors.white,
fontStyle: FontStyle.italic,),),),
),
);
}
}

Comments

Popular posts from this blog

Second GET API Calling with Bloc simple Example in Flutter

Stack Container Scrollable Card widget UI with Custom Widget

Pagination with Bloc Pattern in Flutter