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

outdated

displays dialog window with title, content and buttons, respecting the platform in execution.

example/lib/main.dart

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

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Platform Dialog Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: MyHomePage(title: 'Platform Dialog Tester'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);

  final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Container(),
      floatingActionButton: FloatingActionButton(
          backgroundColor: Colors.blue,
          child: Icon(Icons.message),
          tooltip: 'Press do show the platform dialog',
          elevation: 10,
          onPressed: () async {
            await showDialog(
              barrierDismissible: false,
              context: context,
              child: InformationAlertDialog(
                iconTitle: Icon(
                  Icons.error,
                  color: Colors.red,
                ),
                title: 'Dialog title',
                message: 'Dialog content',
                // buttons: [
                //   ActionsFlatButtonToAlertDialog(
                //     messageButton: 'Cancelar',
                //   ),
                //   //   InformationAlertDialog.createFlatButton(),
                // ],
              ),
            );
          }),
    );
  }
}
0
likes
0
pub points
15%
popularity

Publisher

unverified uploader

displays dialog window with title, content and buttons, respecting the platform in execution.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on dialog_information_to_specific_platform