matrix_waiting_screen 0.0.2 copy "matrix_waiting_screen: ^0.0.2" to clipboard
matrix_waiting_screen: ^0.0.2 copied to clipboard

A highly customizable Flutter package that provides a cool 'Matrix' style digital rain effect waiting screen. Perfect for loading screens, splash screens, or hacker-themed apps.

example/lib/main.dart

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

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) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Matrix_loading_screen',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
      ),
      home: const MyHomePage(title: 'Matrix_loading_screen'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key, required this.title});

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  bool _isLoading = false;

  @override
  Widget build(BuildContext context) {
    if (_isLoading) {
      return const MatrixWaitingScreen(
        title: "Loading... ",
        textColor: Colors.lightGreen,
        backgroundColor: Colors.black,
      );
    }

    return Scaffold(
      appBar: AppBar(title: Text(widget.title)),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            ElevatedButton(
              onPressed: () {
                setState(() {
                  _isLoading = true;
                });
                Future.delayed(const Duration(seconds: 5), () {
                  if (mounted) {
                    setState(() {
                      _isLoading = false;
                    });
                  }
                });
              },
              child: const Text("Click to load"),
            ),
          ],
        ),
      ),
    );
  }
}
1
likes
160
points
78
downloads

Publisher

unverified uploader

Weekly Downloads

A highly customizable Flutter package that provides a cool 'Matrix' style digital rain effect waiting screen. Perfect for loading screens, splash screens, or hacker-themed apps.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on matrix_waiting_screen