A Flutter package to custom splash screen like change logo icon, logo animation, and splash screen background color.

Overview

Custom Splash Screen

A Flutter package to custom splash screen: change logo icon, logo animation, and splash screen background color. (Custom from animated splash screen)

ProgressDialog Demo

Using the package

Get the library

Things to do

  1. Get a logo for your app
  2. Prepare what to execute while the splash screen is shown (initializing your db, shared preferences, firebase...etc)
  3. Screen to be shown after splash screen and background process
  4. Duration of Splash Screen

Import the package

import 'package:custom_splash/custom_splash.dart';

Show splash screen for some duration

  type: CustomSplashType.StaticDuration

Inside your main function, use home as SplashScreen(_), the parameters are as follows:

imagePath: Path to your app-logo/image

backGroundColor(not require - default: white): background's color (Colors.deepOrange or Color(0xfffc6042))

animationEffect(not require - default: 'fade-in'): change animation of logo. There are: 'fade-in', 'zoom-in', 'zoom-out', 'top-down'.

ProgressDialog Demo

logoSize(not require - default: 250): custom size of logo

home: Screen to be shown after splash

duration: duration of splash screen in milliseconds

type

runApp(MaterialApp(
    home: CustomSplash(
        imagePath: 'assets/flutter_icon.png',
        backGroundColor: Colors.deepOrange,
        animationEffect: 'zoom-in',
        logoSize: 200,
        home: MyApp(),
        customFunction: duringSplash,
        duration: 2500,
        type: CustomSplashType.StaticDuration,
        outputAndHome: op,
    ),
));

Execute a function in background and based on the value from that function navigate to different screen

  type: CustomSplashType.BackgroundProcess

Create an object of Function that gets executed while splash screen is shown

Function duringSplash = () {
  //Write your code here
  ...
  return value;
};

Create routes according to your function return value

  //setup the return value correctly for proper navigation
  Map<dynamic, Widget> returnValueAndHomeScreen = {1: Home(), 2: HomeSt()};

Inside your main function, use home as SplashScreen(_), the parameters are as follows:

imagePath: Path to your app-logo/image home: Screen to be shown after splash customFunction: the function you have written above duration: duration of splash screen in milliseconds type output value of customFunction and home screen to navigate(Map function)

runApp(MaterialApp(
    home: CustomSplash(
        imagePath: 'assets/flutter_icon.png',
        backGroundColor: Colors.deepOrange,
        animationEffect: 'zoom-in',
        logoSize: 200,
        home: MyApp(),
        customFunction: duringSplash,
        duration: 2500,
        type: CustomSplashType.BackgroundProcess,
        outputAndHome: op,
    ),
));
Comments
  • Unhandled Exception: NoSuchMethodError: The getter 'length' was called on null. http request

    Unhandled Exception: NoSuchMethodError: The getter 'length' was called on null. http request

    Unhandled Exception: NoSuchMethodError: The getter 'length' was called on null. when using with http request in the background

    void main() async { WidgetsFlutterBinding.ensureInitialized(); SharedPreferences prefs = await SharedPreferences.getInstance();

    Widget _defaultHome = new LoginPage(); if (prefs.getBool('isLogged') != null) { customer = Customer(customerId: prefs.getInt('customerID')); if (prefs.getBool('isLogged')) { apiKey = prefs.getString('apiKey'); _defaultHome = HomePage(); } }

    Function duringSplash = () { print('Something background process'); getCarsModels().then((result) { print("ol"); }); return 1; };

    Map<int, Widget> op = {1: _defaultHome}; return runApp( new MaterialApp( navigatorKey: navigatorKey, title: 'منجد', theme: ThemeData( fontFamily: 'Cairo', primarySwatch: Colors.blue, primaryColor: appColor, appBarTheme: AppBarTheme(color: appColor), ), darkTheme: ThemeData( brightness: Brightness.dark, // additional settings go here ), home: CustomSplash( imagePath: assetImage("splash.png"), backGroundColor: appColor, // backGroundColor: Color(0xfffc6042), animationEffect: 'zoom-in', logoSize: 200, home: _defaultHome, customFunction: duringSplash, duration: 2500, type: CustomSplashType.BackgroundProcess, outputAndHome: op, ), routes: { '/login': (context) => LoginPage(), '/home': (context) => HomePage(), '/SelectLocation': (context) => SelectLocationPage(), '/VFCode': (context) => VFCodePage(), '/register': (context) => RegisterPage(), '/orders': (context) => OrdersPage(), '/orderConfirm': (context) => OrderConfirm(), '/about': (context) => AboutPage(), '/profile': (context) => ProfilePage(), }, ), ); }

    opened by AymanMubark 0
  • How to use Future inside customFunction

    How to use Future inside customFunction

    Hello,

    I can't manage using Futures inside the customFunction, or declare customFunction as a Future doesn't work either.

    customFunction: myFunction,

    myFunction() async { var res = await backgroundTask(); return res; }

    Thanks

    opened by vptcnt 0
  • How use Navigation Routes ?

    How use Navigation Routes ?

    Hi, Thanks for your package !

    I used SplashScreen with Background Function but also Navigation routes with onGenerateRoute and initialRoute in MaterialApp . But in your code, you used pushReplacement. It would take also have to take care of routes with pushReplacementNamed.

    Because I've an error which is: The builder for route "null" returned null. after customFunction...

    In customFunction, I return '1' code and I've Map<int, Widget> op = {1: MyHomePage()};

    Sorry for my English et thanks for your help ! :)

    opened by Victor-Dev77 2
  • Unhandled Exception: Looking up a deactivated widget's ancestor is unsafe.

    Unhandled Exception: Looking up a deactivated widget's ancestor is unsafe.

    Any solutions for this?

    [VERBOSE-2:ui_dart_state.cc(157)] Unhandled Exception: Looking up a deactivated widget's ancestor is unsafe. At this point the state of the widget's element tree is no longer stable. To safely refer to a widget's ancestor in its dispose() method, save a reference to the ancestor by calling dependOnInheritedWidgetOfExactType() in the widget's didChangeDependencies() method. #0 Element._debugCheckStateIsActiveForAncestorLookup. (package:flutter/src/widgets/framework.dart:3763:9) #1 Element._debugCheckStateIsActiveForAncestorLookup (package:flutter/src/widgets/framework.dart:3777:6) #2 Element.findAncestorStateOfType (package:flutter/src/widgets/framework.dart:3896:12) #3 Navigator.of (package:flutter/src/widgets/navigator.dart:1620:19) #4 _CustomSplashState.build.. (package:custom_splash/custom_splash.dart:117:25) #5 _rootRunUnary (dart:async/zone.dart:1134:38) #6 _CustomZone.runUnary (dart:async/zone.dart:1031:19) #7 _FutureListener.handleValue (dart:async/future_impl.dart:140:18)

    opened by CedYF 6
  • Dispose with an active Ticker

    Dispose with an active Ticker

    Sometimes I got the error below while using the hot restart...

    The following assertion was thrown while finalizing the widget tree: _CustomSplashState#94221(ticker active) was disposed with an active Ticker.

    _CustomSplashState created a Ticker via its SingleTickerProviderStateMixin, but at the time dispose() was called on the mixin, that Ticker was still active. The Ticker must be disposed before calling super.dispose().

    Tickers used by AnimationControllers should be disposed by calling dispose() on the AnimationController itself. Otherwise, the ticker will leak.

    The offending ticker was: Ticker(created by _CustomSplashState#94221(lifecycle state: created)) The stack trace when the Ticker was actually created was: #0 new Ticker. (package:flutter/src/scheduler/ticker.dart:66:40) #1 new Ticker (package:flutter/src/scheduler/ticker.dart:68:6) #2 SingleTickerProviderStateMixin.createTicker (package:flutter/src/widgets/ticker_provider.dart:95:15) #3 new AnimationController (package:flutter/src/animation/animation_controller.dart:245:21) #4 _CustomSplashState.initState (package:custom_splash/custom_splash.dart:58:32) #5 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4355:58) #6 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4201:5) #7 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14) #8 Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12) #9 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5445:14) #10 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14) #11 Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12) #12 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16) #13 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5) #14 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4206:5) #15 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4201:5) #16 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14) #17 Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12) #18 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5445:14) #19 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14) #20 Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12) #21 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5445:14) #22 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14) #23 Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12) #24 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16) #25 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5) #26 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4206:5) #27 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4381:11) #28 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4201:5) #29 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14) #30 Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12) #31 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5445:14) #32 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14) #33 Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12) #34 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5445:14) #35 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14) #36 Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12) #37 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16) #38 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5) #39 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4206:5) #40 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4381:11) #41 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4201:5) #42 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14) #43 Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12) #44 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16) #45 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5) #46 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4206:5) #47 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4201:5) #48 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14) #49 Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12) #50 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16) #51 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5) #52 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4206:5) #53 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4381:11) #54 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4201:5) #55 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14) #56 Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12) #57 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5445:14) #58 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14) #59 Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12) #60 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16) #61 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5) #62 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4206:5) #63 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4201:5) #64 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14) #65 Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12) #66 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5445:14) #67 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14) #68 Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12) #69 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16) #70 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5) #71 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4206:5) #72 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4381:11) #73 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4201:5) #74 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14) #75 Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12) #76 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16) #77 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5) #78 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4206:5) #79 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4201:5) #80 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14) #81 Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12) #82 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5445:14) #83 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14) #84 Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12) #85 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16) #86 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5) #87 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4206:5) #88 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4201:5) #89 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14) #90 Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12) #91 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16) #92 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5) #93 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4206:5) #94 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4381:11) #95 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4201:5) #96 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14) #97 Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12) #98 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16) #99 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5) #100 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4206:5) #101 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4381:11) #102 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4201:5) #103 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14) #104 MultiChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5551:32) #105 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14) #106 Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12) #107 _TheatreElement.mount (package:flutter/src/widgets/overlay.dart:591:16) #108 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14) #109 Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12) #110 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16) #111 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5) #112 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4206:5) #113 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4381:11) #114 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4201:5) #115 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14) #116 Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12) #117 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16) #118 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5) #119 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4206:5) #120 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4201:5) #121 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14) #122 Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12) #123 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5445:14) #124 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14) #125 Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12) #126 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16) #127 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5) #128 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4206:5) #129 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4381:11) #130 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4201:5) #131 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14) #132 Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12) #133 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5445:14) #134 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14) #135 Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12) #136 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5445:14) #137 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14) #138 Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12) #139 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16) #140 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5) #141 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4206:5) #142 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4201:5) #143 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14) #144 Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12) #145 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16) #146 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5) #147 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4206:5) #148 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4381:11) #149 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4201:5) #150 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14) #151 Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12) #152 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16) #153 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5) #154 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4206:5) #155 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4201:5) #156 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14) #157 Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12) #158 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16) #159 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5) #160 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4206:5) #161 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4201:5) #162 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14) #163 Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12) #164 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16) #165 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5) #166 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4206:5) #167 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4201:5) #168 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14) #169 Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12) #170 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16) #171 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5) #172 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4206:5) #173 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4201:5) #174 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14) #175 Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12) #176 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16) #177 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5) #178 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4206:5) #179 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4201:5) #180 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14) #181 Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12) #182 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16) #183 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5) #184 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4206:5) #185 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4201:5) #186 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14) #187 Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12) #188 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16) #189 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5) #190 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4206:5) #191 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4381:11) #192 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4201:5) #193 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14) #194 Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12) #195 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16) #196 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5) #197 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4206:5) #198 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4201:5) #199 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14) #200 Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12) #201 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16) #202 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5) #203 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4206:5) #204 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4201:5) #205 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14) #206 Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12) #207 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16) #208 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5) #209 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4206:5) #210 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4201:5) #211 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14) #212 Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12) #213 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16) #214 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5) #215 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4206:5) #216 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4201:5) #217 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14) #218 Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12) #219 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16) #220 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5) #221 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4206:5) #222 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4201:5) #223 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14) #224 Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12) #225 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5445:14) #226 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14) #227 Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12) #228 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16) #229 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5) #230 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2432:33) #231 WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:773:20) #232 RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:283:5) #233 SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1102:15) #234 SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1041:9) #235 SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:957:5) #239 _invoke (dart:ui/hooks.dart:259:10) #240 _drawFrame (dart:ui/hooks.dart:217:3) (elided 3 frames from package dart:async)

    When the exception was thrown, this was the stack: #0 SingleTickerProviderStateMixin.dispose. (package:flutter/src/widgets/ticker_provider.dart:108:7) #1 SingleTickerProviderStateMixin.dispose (package:flutter/src/widgets/ticker_provider.dart:122:6) #2 _CustomSplashState.dispose (package:custom_splash/custom_splash.dart:67:11) #3 StatefulElement.unmount (package:flutter/src/widgets/framework.dart:4435:12) #4 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1748:13) ...

    opened by pulstar 1
  • duringSplash is not being called.

    duringSplash is not being called.

    When I am running the main.dart , splash screen shows but during splash screen does not gets called. I can surely say that because there are no print messages in debug console.

    opened by chiragw34 1
Owner
tranhuycong
tranhuycong
Like Button is a flutter library that allows you to create a button with animation effects similar to Twitter's heart when you like something and animation effects to increase like count.

like_button Language: English | 中文简体 Like Button is a flutter library that allows you to create a button with animation effects similar to Twitter's h

FlutterCandies 357 Dec 27, 2022
A light weight package for flutter apps, that easily shows a splash screen with a nice fade animation.

Animated Splash Screen Using the package Get the library environment: sdk: ">=2.1.0 <3.0.0" Add dependency in pubspec.yaml dependencies: animated_

Mohammad Fayaz 112 Oct 6, 2022
Animated triangles background widget with color gradients

Triangles background Animated triangles background widget with color gradients Getting Started click image to see the video Usage add this line to pub

Marco Bavagnoli 17 Oct 13, 2022
Facilitator for having a Splash Screen with a Flare animation

flare_splash_screen Facilitator for having a Splash screen with a Flare animation until some work has been done for the initialization of the app If y

Jimmy Aumard 94 Oct 6, 2022
Flutter animation tutorials, such common animation, flare animation.

❤️ Star ❤️ the repo to support the project or ?? Follow Me.Thanks! Facebook Page Facebook Group QQ Group Developer Flutter Open Flutter Open 963828159

Flutter开源社区 123 Sep 3, 2022
Flutter animation tutorials, such common animation, flare animation.

❤️ Star ❤️ the repo to support the project or ?? Follow Me.Thanks! Facebook Page Facebook Group QQ Group Developer Flutter Open Flutter Open 963828159

Flutter开源社区 123 Sep 3, 2022
A simple animated circular menu for Flutter, Adjustable radius, colors, alignment, animation curve and animation duration.

A simple animated circular menu for Flutter, Adjustable radius, colors, alignment, animation curve and animation duration. pub package Getting Started

Hasan Mohammed 91 Dec 20, 2022
Create your own custom SlideTransition combined with some animation in Flutter.

Create your own custom SlideTransition combined with some animation in Flutter.

Johannes Milke 7 Jun 21, 2022
Arisslidetransition - Create your own custom SlideTransition combined with some animation in Flutter

SlideTransition Animation - Flutter Create your own custom SlideTransition combi

Behruz Hurramov 1 Jan 9, 2022
🎨Custom animation challenge annouced by egdroid

EgdroidChallenge Follow me on social media github linkedin twitter facebook ?? challenge accepted ?? A challenge code series idea suggested by an awes

null 16 Aug 28, 2020
Loading widget based on a Flare animation, allow you to create beautiful custom loading widgets or dialogs

flare_loading Loading widget based on a Flare animation, allow you to create custom loading widgets or dialogs If you're using Rive instead of Flare p

Jimmy Aumard 25 Apr 16, 2021
A Flutter library that makes animation easer. It allows for separation of animation setup from the User Interface.

animator This library is an animation library for Flutter that: makes animation as simple as the simplest widget in Flutter with the help of Animator

MELLATI Fatah 225 Dec 22, 2022
BKash-Ballance-Animation - BKash Ballance Animation For Flutter

BKash-Ballance-Animation before clone the GitHub repository please give a star o

Blackshadow Software Ltd 11 Sep 1, 2022
Fisherman-Fishing-Animation - Fisherman Fishing Animation With Flutter

Fisherman Fishing Animation before clone the GitHub repository please give a sta

Blackshadow Software Ltd 9 Oct 27, 2022
Nubank card animation - Nubank card animation built with flutter

Nubank card animation Project | Technologies | How to run | How to contribute ??

Lucas da Silva Barbosa 8 Nov 6, 2022
Fade animation - Add fade animation to your app easily

fade_animation Add fade animation to your app easily using simple_animations pac

Mazouzi Aymene 3 Oct 6, 2022
Widgets for creating Hero-like animations between two widgets within the same screen.

flutter_sidekick Widgets for creating Hero-like animations between two widgets within the same screen. Features Hero-like animations. Allow you to spe

Romain Rastel 291 Oct 21, 2022
Onboarding Screen,Alert & Lottie Animation Example.

rehberapp A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if thi

Hüseyin BAKAR 0 Dec 30, 2021
Sample Flutter Drawing App which allows the user to draw onto the canvas along with color picker and brush thickness slider.

DrawApp Sample Flutter Drawing App which allows the user to draw onto the canvas along with color picker and brush thickness slider. All code free to

Jake Gough 226 Nov 3, 2022