adaptive_dialog 1.6.0 copy "adaptive_dialog: ^1.6.0" to clipboard
adaptive_dialog: ^1.6.0 copied to clipboard

outdated

Show alert dialog or modal action sheet adaptively according to platform.

example/lib/main.dart

import 'package:adaptive_dialog/adaptive_dialog.dart';
import 'package:flutter/material.dart' hide Router;
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:go_router/go_router.dart';

import 'app.dart';

void main() {
  WidgetsFlutterBinding.ensureInitialized();
  GoRouter.setUrlPathStrategy(UrlPathStrategy.path);
  AdaptiveDialog.instance.updateConfiguration(
    macOS: AdaptiveDialogMacOSConfiguration(
      applicationIcon: ClipRRect(
        borderRadius: BorderRadius.circular(16),
        child: Image.asset('assets/images/love.png'),
      ),
    ),
  );
  runApp(
    const ProviderScope(
      child: App(),
    ),
  );
}
1005
likes
0
pub points
98%
popularity

Publisher

verified publishermono0926.com

Show alert dialog or modal action sheet adaptively according to platform.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

animations, collection, flutter, intersperse, macos_ui, meta

More

Packages that depend on adaptive_dialog