~/talk

Blocs with Functional Programming: bloc_lens in Action

Talkat Fluttercon Europe 2024 · 2024-07-03..07-05· [flutter, functional-programming]
links:none on file
slides:none on file

A Dart package called bloc_lens provides composable getters/setters (lenses) for Bloc/Cubit state so widgets can read and write single nested fields immutably; examples include a number lens with min/max/step for font-size controls, a boolean lens with toggle, enum and list lenses that create new lists on update, and a tiny flutter hooks utility that subscribes only to the changed value so widgets rebuild less. An experimental block_macros generator auto-creates lenses; package is on pub.dev and GitHub.

AI-written summary · about

  1. 0:00Introduction
  2. 1:09Growing state management
  3. 4:02What are lenses
  4. 6:12Introducing bloc_lens
  5. 9:24Practical controls with lenses
  6. 10:26Font size control with bloc_lens
  7. 12:55Performance benefits
  8. 14:25Use cases for bloc_lens
  9. 15:52Lenses with forms and widgets
  10. 16:59Reducing boilerplate
  11. 18:02Future with Dart macros
  12. 19:28Closing
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.