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

A Flutter package to create a splash screen with a smoke effect.

SplashSmoke #

A Flutter package to create a splash screen with a smoke effect.

Features #

20250117_060241

Getting started #

  • Installation Add the dependency to your pubspec.yaml:
dependencies:
    splash_smoke: ^0.0.3

Run the following command to fetch the package:

flutter pub get

Import the package into your Dart file:


import 'package:splash_smoke/splash_smoke.dart';

Usage #

Include short and useful examples for package users. Add longer examples to /example folder.

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

  // Function to check user login status
  bool isUserLoggedIn() {
    // Implement your login status check logic here
    // For example:
    // return AuthService.instance.isLoggedIn;
    return false; // For example, assuming user is not logged in
  }

  @override
  Widget build(BuildContext context) {
    return SplashSmoke(
      duration: const Duration(seconds: 6),
      // Using conditionalNavigation instead of directly using nextPage
      conditionalNavigation: ConditionalNavigation(
        condition: () => isUserLoggedIn(),
        truePage: const HomePage(), // Page to navigate if user is logged in
        falsePage: const Description(), // Page to navigate if user is not logged in
      ),
      rotatingLodingWidget: Image.asset(
        'assets/bottom_logo.png',
        width: 35,
        height: 35,
        color: Colors.white,
      ),
      backgroundColor: Colors.deepPurpleAccent,
      transitionType: TransitionType.rightToLeft,
      sigmaX: 10,
      sigmaY: 10,
      effectColor: Colors.white,
      child: SizedBox(
        height: 200,
        width: Get.width * 0.9,
        child: Padding(
          padding: const EdgeInsets.only(left: 15.0),
          child: Image.asset("assets/vote2.png"),
        ),
      ),
    );
  }
}

Additional information #

If you have any issues, questions, or suggestions related to this package, please feel free to contact us at swan.dev1993@gmail.com. We welcome your feedback and will do our best to address any problems or provide assistance. For more information about this package, you can also visit our GitHub repository where you can find additional resources, contribute to the package's development, and file issues or bug reports. We appreciate your contributions and feedback, and we aim to make this package as useful as possible for our users. Thank you for using our package, and we look forward to hearing from you!

1
likes
160
points
24
downloads

Publisher

verified publisherswanflutterdev.com

Weekly Downloads

A Flutter package to create a splash screen with a smoke effect.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on splash_smoke