{"id":13551865,"url":"https://github.com/RatelHub/rflutter_alert","last_synced_at":"2025-04-03T02:32:03.912Z","repository":{"id":44965708,"uuid":"160664370","full_name":"RatelHub/rflutter_alert","owner":"RatelHub","description":" RFlutter Alert is super customizable and easy-to-use alert / popup dialog library for Flutter. You may create reusable alert styles or add buttons as much as you want with ease.","archived":false,"fork":false,"pushed_at":"2023-10-05T19:01:51.000Z","size":307,"stargazers_count":389,"open_issues_count":5,"forks_count":114,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-26T05:03:33.593Z","etag":null,"topics":["alert","android","dart","dartlang","dialog","flutter","ios","rflutter","rflutter-alert"],"latest_commit_sha":null,"homepage":"https://ratel.com.tr","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RatelHub.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2018-12-06T11:20:37.000Z","updated_at":"2025-03-18T01:31:41.000Z","dependencies_parsed_at":"2024-04-02T11:05:02.684Z","dependency_job_id":null,"html_url":"https://github.com/RatelHub/rflutter_alert","commit_stats":{"total_commits":66,"total_committers":21,"mean_commits":3.142857142857143,"dds":0.7121212121212122,"last_synced_commit":"701d0c7550ed9c47664acc25c6524f81f4251ec0"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RatelHub%2Frflutter_alert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RatelHub%2Frflutter_alert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RatelHub%2Frflutter_alert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RatelHub%2Frflutter_alert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RatelHub","download_url":"https://codeload.github.com/RatelHub/rflutter_alert/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246763875,"owners_count":20829798,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["alert","android","dart","dartlang","dialog","flutter","ios","rflutter","rflutter-alert"],"created_at":"2024-08-01T12:01:54.728Z","updated_at":"2025-04-03T02:32:03.864Z","avatar_url":"https://github.com/RatelHub.png","language":"Dart","funding_links":[],"categories":["Flutter","Packages","Dart"],"sub_categories":["Components"],"readme":"# RFlutter Alert\n\nRFlutter Alert is super customizable and easy-to-use alert/popup dialogs for Flutter. You may create reusable alert styles or add buttons as much as you want with ease.\n\n[![Version](https://img.shields.io/badge/version-2.0.7-blue.svg)](https://pub.dartlang.org/packages/rflutter_alert)\n\n\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://github.com/ozibrahim/files/raw/master/rflutter_alert_V1.0.2.gif\"\u003e \n\u003c/p\u003e\n\n\u003cp\u003e\n\u003cimg src=\"https://github.com/ozibrahim/files/raw/master/rflutter_alert_V1.0.2.png\" width=\"200\"\u003e\n\u003cimg src=\"https://github.com/ozibrahim/files/raw/master/rflutter_alert_basic_V1.0.2.png\"  width=\"200\"\u003e\n\u003cimg src=\"https://github.com/ozibrahim/files/raw/master/rflutter_alert_buttons_V1.0.2.png\"  width=\"200\"\u003e\n\u003cimg src=\"https://github.com/ozibrahim/files/raw/master/rflutter_alert_custom_V1.0.2.png\"  width=\"200\"\u003e\n\u003cimg src=\"https://github.com/ozibrahim/files/raw/master/rflutter_alert_error_V1.0.2.png\"  width=\"200\"\u003e\n\u003cimg src=\"https://github.com/ozibrahim/files/raw/master/rflutter_alert_icon_V1.0.2.png\"  width=\"200\"\u003e\n\u003cimg src=\"https://github.com/ozibrahim/files/raw/master/rflutter_alert_style_V1.0.2.png\"  width=\"200\"\u003e\n\u003c/p\u003e\n\n## Features\n\n- Single line basic alert\n- Adding buttons dynamically (as much as you want)\n- Predefined beautiful alert styles (success, error, warning, info)\n- Reusable alert styles\n- Super customizable\n\t- Change animation (fromTop, fromBottom, fromRight, fromLeft, grow, shrink) \u0026 Custom Animation\n\t- Set animation duration\n\t- Show/hide close button\n\t- Set overlay tap to dismiss\n\t- Assign Title and desc styles\n\t- Change dialog border style\n## Getting started\n\nYou must add the library as a dependency to your project.\n```yaml\ndependencies:\n rflutter_alert: ^2.0.7\n```\n\nYou can also reference the git repo directly if you want:\n```yaml\ndependencies:\n rflutter_alert:\n   git: git://github.com/RatelHub/rflutter_alert.git\n```\n\n\nYou should then run `flutter packages get`\n\n\n## Example Project\n\nThere is a detailed example project in the `example` folder. You can directly run and play on it. There are code snippets from example project below.\n\n\n## Basic Alert\n\n\n```dart\nAlert(context: context, title: \"RFLUTTER\", desc: \"Flutter is awesome.\").show();\n```\n\n## Alert with Button\n\n\n```dart\n    Alert(\n      context: context,\n      type: AlertType.error,\n      title: \"RFLUTTER ALERT\",\n      desc: \"Flutter is more awesome with RFlutter Alert.\",\n      buttons: [\n        DialogButton(\n          child: Text(\n            \"COOL\",\n            style: TextStyle(color: Colors.white, fontSize: 20),\n          ),\n          onPressed: () =\u003e Navigator.pop(context),\n          width: 120,\n        )\n      ],\n    ).show();\n```\n\n## Alert with Buttons\n\n\n```dart\n    Alert(\n      context: context,\n      type: AlertType.warning,\n      title: \"RFLUTTER ALERT\",\n      desc: \"Flutter is more awesome with RFlutter Alert.\",\n      buttons: [\n        DialogButton(\n          child: Text(\n            \"FLAT\",\n            style: TextStyle(color: Colors.white, fontSize: 20),\n          ),\n          onPressed: () =\u003e Navigator.pop(context),\n          color: Color.fromRGBO(0, 179, 134, 1.0),\n        ),\n        DialogButton(\n          child: Text(\n            \"GRADIENT\",\n            style: TextStyle(color: Colors.white, fontSize: 20),\n          ),\n          onPressed: () =\u003e Navigator.pop(context),\n          gradient: LinearGradient(colors: [\n            Color.fromRGBO(116, 116, 191, 1.0),\n            Color.fromRGBO(52, 138, 199, 1.0)\n          ]),\n        )\n      ],\n    ).show();\n```\n\n\n## Alert with Style\n### AlertStyle\n\nUse the `AlertStyle` class to customize.\n```dart\n    var alertStyle = AlertStyle(\n      animationType: AnimationType.fromTop,\n      isCloseButton: false,\n      isOverlayTapDismiss: false,\n      descStyle: TextStyle(fontWeight: FontWeight.bold),\n      descTextAlign: TextAlign.start,\n      animationDuration: Duration(milliseconds: 400),\n      alertBorder: RoundedRectangleBorder(\n        borderRadius: BorderRadius.circular(0.0),\n        side: BorderSide(\n          color: Colors.grey,\n        ),\n      ),\n      titleStyle: TextStyle(\n        color: Colors.red,\n      ),\n      alertAlignment: Alignment.topCenter,\n    );\n```\nAnd assign your `AlertStyle` object to Alert's `style` field.\n```dart\n    Alert(\n      context: context,\n      style: alertStyle,\n      type: AlertType.info,\n      title: \"RFLUTTER ALERT\",\n      desc: \"Flutter is more awesome with RFlutter Alert.\",\n      buttons: [\n        DialogButton(\n          child: Text(\n            \"COOL\",\n            style: TextStyle(color: Colors.white, fontSize: 20),\n          ),\n          onPressed: () =\u003e Navigator.pop(context),\n          color: Color.fromRGBO(0, 179, 134, 1.0),\n          radius: BorderRadius.circular(0.0),\n        ),\n      ],\n    ).show();\n```\n\n## Alert with Custom Image\n\n```dart\n    Alert(\n      context: context,\n      title: \"RFLUTTER ALERT\",\n      desc: \"Flutter is better with RFlutter Alert.\",\n      image: Image.asset(\"assets/success.png\"),\n    ).show();\n```\n\n## Alert with Custom Content\n\n```dart\n    Alert(\n        context: context,\n        title: \"LOGIN\",\n        content: Column(\n          children: \u003cWidget\u003e[\n            TextField(\n              decoration: InputDecoration(\n                icon: Icon(Icons.account_circle),\n                labelText: 'Username',\n              ),\n            ),\n            TextField(\n              obscureText: true,\n              decoration: InputDecoration(\n                icon: Icon(Icons.lock),\n                labelText: 'Password',\n              ),\n            ),\n          ],\n        ),\n        buttons: [\n          DialogButton(\n            onPressed: () =\u003e Navigator.pop(context),\n            child: Text(\n              \"LOGIN\",\n              style: TextStyle(color: Colors.white, fontSize: 20),\n            ),\n          )\n        ]).show();\n```\n\n\n## Contributions\n* If you **found a bug**, open an issue.\n* If you **have a feature request**, open an issue.\n* If you **want to contribute**, submit a pull request.\n## Version compatability\n\nSee CHANGELOG for all breaking (and non-breaking) changes.\n\n\u003chr/\u003e\nMade with ❤ by \u003ca href=\"https://ratel.com.tr\"\u003eRatel\u003c/a\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRatelHub%2Frflutter_alert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FRatelHub%2Frflutter_alert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRatelHub%2Frflutter_alert/lists"}