Growth

  • 14 Posts
  • 21 Comments
Joined 1 年前
cake
Cake day: 2023年6月12日

help-circle
























  • JophtoFlutterHelp a new flutter man out!
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    1 年前

    You could pass it up a level by having the ScrollController be a class property obtained thru the constructor, which the parent would then provide when calling the widget.

    This gets unwieldy fast. That’s where the state management solutions come in. From the pubspec.yaml, it seems Thunder uses Bloc for that. Look at the docs.



  • I remember from the book “Why We Sleep” that our sleep cycle takes cues from both light and temperature levels throughout the day, which we isolated ourselves from in modern times. The day doesn’t end after sundown anymore thanks to lightbulbs, and many of us live at a constant temperature due to AC. That’s two clues of “night is near, prep to sleep” that we no longer receive. Maybe our ancestors had an easier time due to more consistent clues?