Created
October 18, 2018 06:10
-
-
Save 5lineofcode/d2a230542219208227ee735d45b13047 to your computer and use it in GitHub Desktop.
Extreme Action Button Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Buat terlebih dahulu UI-nya seperti berikut: | |
floatingActionButton: ExFloatingActionButton( | |
actionId: "sendMessage", | |
iconName: Icons.chat, | |
), | |
/* | |
Ok, selanjutnya definisikan actionnya sesuai actionId, | |
Best practices-nya, diletakkan di file terpisah namun tetap berfungsi jika diletakkan di file | |
yang sama | |
*/ | |
ActionManager.createAction("sendMessage", () { | |
/* | |
Action yang diinginkan, seperti menyimpan data ke firebase dan lainnya | |
*/ | |
print("Success Bro"); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment