animated_splash_container 0.0.3 copy "animated_splash_container: ^0.0.3" to clipboard
animated_splash_container: ^0.0.3 copied to clipboard

A Flutter widget that creates animated splash screens with customizable colors

Features #

Animated containers that can be typically used in splash screens

Usage #

usage usage

Add dependency #

Please check the latest version before installation. If there is any problem with the new version, please use the previous version

dependencies:
  flutter:
    sdk: flutter
  # add animated_splash_container
  animated_splash_container: ^0.0.1
void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    SystemChrome.setPreferredOrientations([
      DeviceOrientation.portraitUp,
      DeviceOrientation.portraitDown,
    ]);
    return MaterialApp(
      title: 'Animated Container Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const SplashScreen(),
    );
  }
}

class SplashScreen extends StatefulWidget {
  const SplashScreen({super.key});

  @override
  State<SplashScreen> createState() => _SplashScreenState();
}

class _SplashScreenState extends State<SplashScreen> {
  @override
  Widget build(BuildContext context) {
    return const AnimatedSplashContainer(
      color1: Colors.red,
      color2: Colors.yellow,
      containerType: ContainerType.circle
    );
  }
}
3
likes
160
points
13
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter widget that creates animated splash screens with customizable colors

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_screenutil

More

Packages that depend on animated_splash_container