Git Product home page Git Product logo

rich-alert-dialogs's Introduction

โœจ Flutter Sweet Alert pub package

A Flutter plugin for displaying sweet alert dialogs.

Inspired by rich_alert

๐ŸŽ– Installing

dependencies:
  sweet_alert_dialogs: "^0.2.0"

โšก๏ธ Import

import 'package:sweet_alert_dialogs/sweet_alert_dialogs.dart';

๐Ÿ“ท Screenshots

๐ŸŽฎ How To Use

showDialog(
    context: context,
    builder: (BuildContext context) {
       return RichAlertDialog(
          alertTitle: richTitle("Success"),
          alertSubtitle: richSubtitle("This is a Sucess alert"),
          alertType: RichAlertType.SUCCESS,
          actions: <Widget>[
            FlatButton(
              child: Text("OK"),
              onPressed: (){Navigator.pop(context);},
            ),
            FlatButton(
              child: Text("Cancel"),
              onPressed: (){Navigator.pop(context);},
            ),
          ],
       );
    }
);

๐Ÿ› Bugs/Requests

If you encounter any problems feel free to open an issue. If you feel the library is missing a feature, please raise a ticket on Github and I'll look into it. Pull request are also welcome.

โ—๏ธ Note

For help getting started with Flutter, view the online documentation.

For help on editing plugin code, view the documentation.

โญ๏ธ License

MIT Licence

rich-alert-dialogs's People

Contributors

gopalvirat avatar imgbotapp avatar jideguru avatar restyled-commits avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

rich-alert-dialogs's Issues

m getting this error after using this plugin

Execution failed for task ':sweet_alert_dialogs:verifyReleaseResources'.

1 exception was raised by workers:
com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
C:\Users\Dell\AndroidStudioProjects\artistry\build\sweet_alert_dialogs\intermediates\res\merged\release\values\values.xml:171: error: resource android:attr/fontVariationSettings not found.
C:\Users\Dell\AndroidStudioProjects\artistry\build\sweet_alert_dialogs\intermediates\res\merged\release\values\values.xml:172: error: resource android:attr/ttcIndex not found.

alertTitle height issue

You have a issue on sweet_alerts_dialog.dart file at 83. code block .
When I write 2 lines of alertTitle, the ui getting error . I change the dialogHeight = deviceHeight * (2 / 5); to dialogHeight = deviceHeight * (0.45); and its work but you need solve this issue.

Execution failed for task ':sweet_alert_dialogs:verifyReleaseResources'.

Hello facing issue in building my apk, the following lines are throwing from task build apk:

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':sweet_alert_dialogs:verifyReleaseResources'.

java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
C:\Users\x8_h\OneDrive\Desktop\myInsurance_app\myinsurance\build\sweet_alert_dialogs\intermediates\res\merged\release\values\values.xml:236: error: resource android:attr/fontVariationSettings not found.
C:\Users\x8_h\OneDrive\Desktop\myInsurance_app\myinsurance\build\sweet_alert_dialogs\intermediates\res\merged\release\values\values.xml:237: error: resource android:attr/ttcIndex not found.
error: failed linking references.

flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[โˆš] Flutter (Channel unknown, v1.13.5, on Microsoft Windows [Version 10.0.18362.476], locale en-US)

[โˆš] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[โˆš] Android Studio (version 3.5)
[โˆš] VS Code (version 1.40.2)
[!] Connected device
! No devices available

! Doctor found issues in 1 category.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.