Thursday, April 29, 2021

flutter packages,icons,custom widgets,GestureDetecter,enum,ternary operator,functions as objects

 https://pub.dartlang.org/flutter


flutter packages link.

many community open source packages available.



--


const is compile time constant.


const int myConst = 2 + 5;//grabbbing data at runtime and setting it is not possible.

const int myConst = DateTime.now() // doesn't support as it is runtime value.

final int myFinal = DateTime.now();//final value can be grabbed from runtime.





for icons:

font_awesome_flutter package


Cutom flutter widgets.

GestureDetecter can be used for event handling,as FLatButton removes styling.
onTap: event


concepts used in below project:
enum,ternary operator,functions as objects,

Repo: https://github.com/uday1kiran/fluttercourse_bmicalculator
commit 1

No comments:

Post a Comment