1. 13 Feb, 2024 1 commit
    • Nate's avatar
      Implementing `switch` expressions in `widgets/` (#143293) · 8eea4f17
      Nate authored
      This PR is the 7ᵗʰ step in the journey to solve issue #136139 and make the entire Flutter repo more readable.
      
      (previous pull requests: #139048, #139882, #141591, #142279, #142634, #142793)
      
      This pull request covers everything in `packages/flutter/lib/src/widgets/`. Most of it should be really straightforward, but there was some refactoring in the `getOffsetToReveal()` function in `two_dimensional_viewport.dart`. I'll add some comments to describe those changes.
      8eea4f17
  2. 22 Mar, 2023 1 commit
  3. 24 Jan, 2023 1 commit
  4. 06 Oct, 2022 1 commit
  5. 17 Aug, 2022 1 commit
  6. 26 May, 2022 1 commit
  7. 14 Apr, 2022 1 commit
  8. 08 Oct, 2021 3 commits
  9. 05 Jan, 2021 1 commit
  10. 30 Oct, 2020 1 commit
  11. 10 Oct, 2020 1 commit
  12. 15 Sep, 2020 1 commit
    • Alexandre Ardhuin's avatar
      Reland "Nnbd widgets" (#65528) · b007a81a
      Alexandre Ardhuin authored
      * Reland "Nnbd widgets (#64672)"
      
      This reverts commit 127e6790.
      
      * remove non-nullable enforcement on AsyncSnapshot
      
      * make data param non-nullable for AsyncSnapshot.withData
      
      * make some Text params non-nullable
      b007a81a
  13. 09 Sep, 2020 2 commits
    • Michael Goderbauer's avatar
      Revert "Nnbd widgets (#64672)" (#65488) · 127e6790
      Michael Goderbauer authored
      This reverts commit e682ec71.
      127e6790
    • Alexandre Ardhuin's avatar
      Nnbd widgets (#64672) · e682ec71
      Alexandre Ardhuin authored
      * migrate widget to nullsafety
      
      * remove double blank line after license
      
      * address review comments in actions.dart
      
      * nullable ObjectKey.value
      
      * use local variable oldElement
      
      * make State.build non-nullable
      
      * make State.context non-nullable
      
      * newline at eof
      
      * make ProxyWidget.child non-nullable
      
      * make _InactiveElements.debugContains non-nullable
      
      * make Element.depth non-nullable
      
      * make ProxyElement.build non-nullable
      
      * make StatefulElement.state non-nullable
      
      * remove 'Notice that'
      
      * avoid cast of list in RenderObjectElement.updateChildren
      
      * make IndexedSlot.value non-nullable
      
      * avoid cast of list in MultiChildRenderObjectElement.mount
      
      * make some WidgetsApp parameters non-nullable
      
      * hitTest take non-nullable position
      
      * make ScrollableState.position non-nullable
      
      * use _pixels instead of pixels
      
      * make ViewportOffset.pixels non-nullable
      
      * make param and return type of IndexedWidgetBuilder non-nullable
      
      * unused_import
      
      * make context param non-nullable for Builder in animated_list.dart
      
      * make ScrollMetrics.viewportDimension non-nullable
      
      * make ScrollMetrics.{min,max}ScrollExtent non-nullable
      
      * make _Location.file non-nullable
      
      * _WidgetForTypeTests.createElement throw UnimplementedError
      
      * update _NullWidget.build error message
      
      * make _ShortcutsState.manager non-nullable
      
      * Fix childCount issues for NNBD
      
      * fix childCount computation on web
      
      * increase max value on js side to compute childCount
      
      * make aspect parameter of dependOnInheritedWidgetOfExactType nullable
      
      * merge has{min,max}ScrollExtent into hasScrollExtents
      
      * update focus_manager.dart
      
      * address review comments in icon.dart
      
      * address review comments in image.dart
      
      * address review comments in routes.dart
      
      * address review comments in scroll_activity.dart
      
      * update doc comments
      
      * make UserScrollNotification.direction non-nullable and required
      
      * rename hasScrollExtents to hasContentDimensions
      
      * unnecessary late
      Co-authored-by: 's avatarIan Hickson <ian@hixie.ch>
      e682ec71
  14. 11 Jun, 2020 1 commit
  15. 27 Nov, 2019 1 commit
    • Ian Hickson's avatar
      License update (#45373) · 449f4a66
      Ian Hickson authored
      * Update project.pbxproj files to say Flutter rather than Chromium
      
      Also, the templates now have an empty organization so that we don't cause people to give their apps a Flutter copyright.
      
      * Update the copyright notice checker to require a standard notice on all files
      
      * Update copyrights on Dart files. (This was a mechanical commit.)
      
      * Fix weird license headers on Dart files that deviate from our conventions; relicense Shrine.
      
      Some were already marked "The Flutter Authors", not clear why. Their
      dates have been normalized. Some were missing the blank line after the
      license. Some were randomly different in trivial ways for no apparent
      reason (e.g. missing the trailing period).
      
      * Clean up the copyrights in non-Dart files. (Manual edits.)
      
      Also, make sure templates don't have copyrights.
      
      * Fix some more ORGANIZATIONNAMEs
      449f4a66
  16. 17 Sep, 2019 1 commit
  17. 12 Sep, 2018 1 commit
  18. 05 Jun, 2018 1 commit
  19. 03 May, 2018 1 commit
  20. 24 Sep, 2017 1 commit
  21. 14 Sep, 2017 1 commit
    • Mehmet Fidanboylu's avatar
      Allow apps to change the title spacing in app bar. (#12076) · f3b3ff47
      Mehmet Fidanboylu authored
      * Allow apps to change the title margin in app bar.
      
      * Fix documentation links and the shouldLayout function in the _ToolbarLayout
      
      * Rename margin to spacing
      
      * review comments
      
      * Test fixes. Now we also test the width to make sure enough space is left for trailing widget
      
      * Expose the middle spacing default and use it in app bar.
      
      * Fix analyzer break
      
      * Doc fixes due to review
      f3b3ff47
  22. 08 Sep, 2017 1 commit
  23. 01 Sep, 2017 1 commit
  24. 13 Jun, 2017 1 commit
    • xster's avatar
      Create a CupertinoScaffold (#10543) · e38f92df
      xster authored
      * works using pageview
      it’s a bit heavy and scrolls
      no documentation or test yet
      
      * docs and tests
      
      * more docs tweak
      
      * revert drive by page view changes
      
      * swap out the indexed stack for a custom thing
      
      * layout everything on the cheap
      tests pass
      
      * add more tests
      
      * move back to stack and add docs
      
      * review notes
      
      * build all the tabs once built
      e38f92df
  25. 06 Jun, 2017 1 commit
  26. 01 Jun, 2017 1 commit