Search
 
SCRIPT & CODE EXAMPLE
 

DART

splash screen flutter null safety

import 'package:flare_splash_screen/flare_splash_screen.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(MaterialApp(
    home: SplashScreen.navigate(
      name: 'assets/intro.flr',
      next: (context) => SplashTela(),
      startAnimation: '1',
      backgroundColor: Color(0xff3333),
      until: () => Future.delayed(Duration(seconds: 5)),
    ),
  ));
}

class SplashTela extends StatefulWidget {
  @override
  _SplashTelaState createState() => _SplashTelaState();
}

class _SplashTelaState extends State<SplashTela> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: null,
      body: Container(
        color: Colors.redAccent,
      ),
    );
  }
}
Comment

PREVIOUS NEXT
Code Example
Dart :: how to pass a double value from text field using flutter 
Dart :: dart interfaces 
Dart :: dart create hash 
Dart :: Add Underline Text in Flutter 
Dart :: flutter datacolumn center text 
Dart :: flutter push and pop doesnt work 
Dart :: dart class 
Dart :: dart double to int 
Dart :: flutter run ios white screen 
Dart :: list dart 
Dart :: dart map clear 
Dart :: flutter firebase 
Dart :: how to use api key in flutter 
Dart :: Find string index inside a list flutter 
Dart :: pass by reference in dart 
Dart :: widget capture in flutter 
Dart :: select an item woth index list dart 
Dart :: how to use $ input in dart as a string 
Dart :: flutter add external icons 
Dart :: tabbar flutter change background color 
Dart :: Get Prime Number in dart 
Dart :: dropdown flutter transparent 
Dart :: flutter contaienr 
Swift :: format decimal place swift 
Swift :: toggle in swift 
Swift :: how to disable uitableview selection in swift 
Swift :: date in swiftui 
Swift :: switches xcode 
Swift :: Decimal to Double conversion in Swift 
Swift :: append new element to dictionary in swift 
ADD CONTENT
Topic
Content
Source link
Name
2+8 =