aot_dailogs

Creator: coderz1093

Last updated:

0 purchases

aot_dailogs Image
aot_dailogs Images

Languages

Categories

Add to Cart

Description:

aot dailogs

aot_dailogs #
A flutter package that provides commonly used dialog boxes
usage #
[Example] (https://github.com/algoocean-technologies-pvt-ltd/aot-dialogs/blob/main/aot_dailogs/Example/example_app.dart)
To use this package : *add the dependency to your [pubspec.yaml] file.
dependencies:
flutter:
sdk: flutter
aot_dailogs:
copied to clipboard
Add to your dart file #

import 'package:aot_dailogs/aot_dailogs.dart';
import 'package:aot_dailogs/images.dart';
import 'package:flutter/material.dart';
class DialogBoxDemo extends StatefulWidget {
@override
State<StatefulWidget> createState() {
return new DialogBoxDemoState();
}
}

class DialogBoxDemoState extends State<DialogBoxDemo> {
@override
Widget build(BuildContext context) {
return new Scaffold(
appBar: new AppBar(
title: new Text("AOT-Dialog Box"),
),
body: new Center(
child: new Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
new Text(
'Click',
style: new TextStyle(
fontWeight: FontWeight.bold,
fontSize: 160.0,
fontFamily: 'Roboto',
),
),
new Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: <Widget>[
new RaisedButton(
padding: const EdgeInsets.all(8.0),
textColor: Colors.white,
color: Colors.blue,
onPressed: () {
AOTDialogs.okDialog(
context, 'Success', CustomImages.checkImage);
},
child: new Text("Confirm Dialog"),
),
new RaisedButton(
onPressed: () {
AOTDialogs.okDialog(
context, 'Success', CustomImages.crossImage);
},
textColor: Colors.white,
color: Colors.red,
padding: const EdgeInsets.all(8.0),
child: new Text(
"Okay Dialog",
),
),
],
)
],
),
));
}
}

copied to clipboard
Getting Started #
This project is a starting point for a Dart
package,
a library module containing code that can be shared easily across
multiple Flutter or Dart projects.
For help getting started with Flutter, view our
online documentation, which offers tutorials,
samples, guidance on mobile development, and a full API reference.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.