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

discontinued

CustomAlertPopup is a customizable alert dialog widget for Flutter applications. It offers various features, including support for Image and Video, custom widgets, animations, countdown timers,loading [...]

example/lib/main.dart

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

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Custom Alert Popup Demo',
      theme: ThemeData(colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple), useMaterial3: true),
      home: const CustomAlertPopupExample(),
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return Center(
      child: ElevatedButton(
        onPressed: () {
          showDialog(
            context: context,
            builder: (context) => const CustomAlertPopup(
              title: "Hello",
              description: "This is a custom alert dialog box",
              firstButtonText: "Ok",
              secondButtonText: "Cancel",
              // Do not pass image and video simultaneously; pass one at a time.
              // imagePath: "assets/images/demo_image.png",
              videoPath: "assets/videos/demo_video.mp4",
            ),
          );
        },
        child: const Text("Custom Alert Box"),
      ),
    );
  }
}
6
likes
0
points
47
downloads

Publisher

unverified uploader

Weekly Downloads

CustomAlertPopup is a customizable alert dialog widget for Flutter applications. It offers various features, including support for Image and Video, custom widgets, animations, countdown timers,loading button and responsive design. This widget is highly configurable to fit a wide range of use cases in your application

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, flutter_animate, flutter_hooks, flutter_timer_countdown, video_player, video_player_win

More

Packages that depend on custom_alert_popup