RatelHub / rflutter_alert

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.
https://ratel.com.tr
MIT License
386 stars 117 forks source link

while running the code insetPadding is not working #71

Closed khanna007 closed 3 years ago

ibrahimdevs commented 4 years ago

@khanna007 what is your code? What did you expect and get? Can you share detailed issue please?

Thanks,

khanna007 commented 4 years ago

style: AlertStyle( animationDuration: Duration(milliseconds: 1000), isCloseButton: false, titleStyle: Style.textStyle_2, isOverlayTapDismiss: false, ), This is my style code while compiling the code compilation error comes in this package So i commented the code insetPadding from the package then it runs successfully

ibrahimdevs commented 4 years ago

@khanna007 project example works without problem. Can you test it with the latest version V1.1.0?

What is your error logs/ stack trace?

eliobou commented 3 years ago

I have the same problem, the error log are Compiler message: /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/rflutter_alert-1.1.0/lib/src/alert.dart:100:15: Error: No named parameter with the name 'insertPadding'. insertPadding: style.alertPadding, ^^^^^^^^^^^^^ /C:/src/flutter/packages/flutter/lib/src/material/dialog.dart:208:9: Context: Found this candidate, but the arguments don't match. const AlertDialog({ ^^^^^^^^^^^

My code is simply : Alert(context: context, title: "RFLUTTER", desc: "Quizz is finished.").show();

khanna007 commented 3 years ago

@eliobou Please use the latest version of this package I used this @ibrahimdevs you can close this issue it's working great.

eliobou commented 3 years ago

I used the v1.1.0 wich I think is the latest version, you can see it in the error message.

hadiabdullan commented 3 years ago

i have the same isuue!!

ibrahimdevs commented 3 years ago

I can't reproduce your issue. And also it is very weird that @eliobou error log says that there is "insertPadding" at our alert.dart 100. line. But it is not, it is correctly "'insetPadding".

I think this issue is not related our plugin, I'm closing this issue. @eliobou and @hadiabdullan you can try our latest version with clean your pub-cache first.