No video

Flutter CloseButton Widget Abdul Motaleb|Learn With Motaleb|Flutter Widget

A Material Design close icon button.
A CloseButton is an IconButton with a "close" icon. When pressed, the close button calls Navigator.maybePop to return to the previous route.
The onPressed callback can, for instance, be used to pop the platform's navigation stack via SystemNavigator instead of Flutter's Navigator in add-to-app situations.
In Material Design 3, both style's ButtonStyle.iconColor and color are used to override the default icon color of CloseButton. If both exist, the ButtonStyle.iconColor will override color for states where ButtonStyle.foregroundColor resolves to non-null.
Use a CloseButton instead of a BackButton on fullscreen dialogs or pages that may solicit additional actions to close.
Follow Facebook Community: / 427533327933322
Follow Facebook: / learnwithmotaleb
Follow GitHub: github.com/lea...
Follow Website: www.learnwithm...
Follow Linkedin: / abdul-motaleb-345744172
E-mail: info@learnwithmotaleb.com
Phone/WhatsApp: +8801701577479

Пікірлер