Using Flutter
header: Succulent Flutter App
Making a Cross Platform App with Flutter
Lessons:
- Find widgets on pub.dev that fit your project and are null safe, null safety makes your project better and inherently compatible with other null safe projects.
- Learn more about null safety here: dart.dev
- Using
flutter clean
is your friend- Builds occasionally don’t work for no real reason. If this is the case, you can always run the clean command to potentially fix issues.
- If this doesn’t work, you can build it to a different platform/os then back to the original platform.
- To my knowledge, you cannot use widgets to communicate with other widgets, I can’t say:
childWidget()
build()
return widget(
onTap: () {
parentWidget.add(item);
setState(){};
but I can say:
//this is pseudo code
parentWidget(){
mylist = [];
Widget childWidget(list){
return widget(
onTap: () {
mylist.add("hello")
setState(){};
}
}
build() => childWidget(mylist);
}
- When using the scaffold widget to make the app, you want to use an indexed stack if you want to also use an animated navigation bar, to let the animation play out, instead of getting cut off when switching contexts.
I’ll add binaries to this page shortly, see you next time!