Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import 'package:flutter/material.dart';
- void main() => runApp(new MaterialApp(
- theme:
- ThemeData(primaryColor: Colors.redAccent, accentColor: Colors.yellowAccent ),
- debugShowCheckedModeBanner: false,
- home: SplashScreen(),
- ));
- class SplashScreen extends StatefulWidget {
- @override
- _SplashScreenState createState() => _SplashScreenState();
- }
- class _SplashScreenState extends State<SplashScreen>{
- @override
- Widget build(BuildContext context) {
- // TODO: implement build
- return new Scaffold(
- body: Stack(
- fit: StackFit.expand,
- children: <Widget>[
- Container(
- decoration: BoxDecoration(color: Colors.deepOrangeAccent),
- ),
- Column(
- mainAxisAlignment: MainAxisAlignment.start,
- children: <Widget>[
- Expanded(
- flex: 2,
- child: Container(
- child: Column(
- mainAxisAlignment: MainAxisAlignment.center,
- children: <Widget>[
- CircleAvatar(
- backgroundColor: Colors.white,
- radius: 50.0,
- child: Icon(
- Icons.fastfood,
- color: Colors.red,
- size: 50.0,
- ),
- ),
- Padding(
- padding: EdgeInsets.only(top: 10.0),
- ),
- Text(
- "Just-Yib",
- style: TextStyle(
- color: Colors.white,
- fontSize: 24.0,
- fontWeight: FontWeight.bold),
- )
- ],
- ),
- ),
- ),
- Expanded(
- flex: 1,
- child: Column(
- mainAxisAlignment: MainAxisAlignment.center,
- children: <Widget>[
- CircularProgressIndicator(),
- Padding(
- padding: EdgeInsets.only(top: 20.0),
- )
- ],
- ),
- )
- ],
- )
- ],
- ),
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement