1. 04 Oct, 2021 1 commit
    • Greg Spencer's avatar
      Clean up examples, remove section markers and --template args (#91133) · fd9ce277
      Greg Spencer authored
      This does a cleanup of the examples, removing all of the "section" markers and extra comments that we don't need anymore now that the samples are no longer in the source code. It also removes the --template arguments from the {@tool dartpad} and {@tool sample} directives, since those are no longer used. It converts two examples that I discovered were still embedded into linked examples in the examples folder.
      
      I didn't delete the templates from the snippets config folder yet, because there are still embedded samples in the dart:ui package from the engine that use them. Once dart:ui no longer uses the templates, they can be removed.
      
      I bumped the version of the snippets package to pick up a change that allows removal of the --template argument.
      fd9ce277
  2. 25 Aug, 2021 1 commit
    • Greg Spencer's avatar
      Extract Sample code into examples/api (#87280) · 33403bd2
      Greg Spencer authored
      This extracts the sample code out from the API doc comments, and places them in separate files on disk, allowing running of the examples locally, testing them, and building of slightly larger examples.
      33403bd2
  3. 13 May, 2021 1 commit
  4. 10 May, 2021 1 commit
  5. 05 Jan, 2021 1 commit
  6. 24 Dec, 2020 1 commit
  7. 11 Dec, 2020 1 commit
  8. 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
  9. 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
  10. 28 Jul, 2020 1 commit
  11. 11 Jun, 2020 1 commit
  12. 16 Mar, 2020 1 commit
  13. 25 Jan, 2020 1 commit
  14. 08 Jan, 2020 1 commit
  15. 07 Jan, 2020 1 commit
  16. 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
  17. 22 Nov, 2019 1 commit
  18. 17 Sep, 2019 1 commit
  19. 05 Sep, 2019 1 commit
    • Ian Hickson's avatar
      Docs (#39198) · a415c76b
      Ian Hickson authored
      * Minor improvements to framework documentation.
      
      * maybePop documentation fix
      
      * Mark some flutter_test arguments required.
      
      Without these set, we get a crash.
      
      * Minor correction to ListView docs
      a415c76b
  20. 16 May, 2019 1 commit
  21. 06 Mar, 2019 1 commit
  22. 21 Feb, 2019 1 commit
  23. 29 Jan, 2019 1 commit
  24. 08 Nov, 2018 1 commit
  25. 08 Oct, 2018 1 commit
    • Ian Hickson's avatar
      Fix bug in AnimatedSwitcher (#22183) · 874df1ec
      Ian Hickson authored
      * Refactor AnimatedSwitcher
      
      This is mostly just a little bit of cleanup with hopefully no semantic
      changes, done to teach me how the code works so that I could fix a bug.
      
      * Add debugging information to AnimatedSwitcher
      
      * Fix AnimatedSwitcher to handle the case of back-to-back changes
      
      Previously, if a child was replaced the very next frame after it was
      added, we'd get confused because we tried to reverse the controller,
      which causes us to remove the child from the going-away list, before
      we had added the child to the list in the first place.
      
      The fix is just to move the reverse to after the add.
      874df1ec
  26. 14 Sep, 2018 1 commit
  27. 12 Sep, 2018 1 commit
  28. 07 Sep, 2018 1 commit
  29. 13 Jun, 2018 1 commit
    • Chris Bracken's avatar
      Revert elimination of Dart 1 (#18460) · 2ae48845
      Chris Bracken authored
      fuchsia_tester.dart still assumes Dart 1. Previously, it ran tests directly
      from source, flutter_platform.dart automatically runs a kernel compile when
      operating in Dart 2 mode, but this assumes a functional Dart SDK is available
      in the artifacts directly, and fuchsia_tester.dart mocks out the artifacts
      directory with an empty temp dir.
      
      Remaining work is:
      1. Get the frontend server building as a dependency on Fuchsia.
      2. Patch fuchsia_tester.dart to use a valid Dart SDK and frontend server.
      
      This also reverts migration to Dart 2 typedef syntax.
      
      This reverts commit 6c56bb24. (#18362)
      This reverts commit 3daebd05. (#18316)
      2ae48845
  30. 11 Jun, 2018 1 commit
    • Greg Spencer's avatar
      Update typedef syntax to use Function notation and turn on lint for old notation. (#18362) · 6c56bb24
      Greg Spencer authored
      Now that Dart 1 is turned off, reapplying my change to turn on the prefer_generic_function_type_aliases analysis option, and fix all the typedefs to Dart 2 preferred syntax.
      
      Also eliminated the unused analysis_options_repo.yaml file and turned on public_member_api_docs in analysys_options.yaml.
      
      No logic changes, just changing the typedef syntax for all typedefs, and updating analysis options.
      6c56bb24
  31. 05 Jun, 2018 1 commit
  32. 01 Jun, 2018 1 commit
  33. 30 May, 2018 2 commits
  34. 18 May, 2018 1 commit
    • Greg Spencer's avatar
      Speed up AnimatedSwitcher. (#17265) · 1f5fcb74
      Greg Spencer authored
      This optimizes the AnimatedSwitcher so that it tags the right widget with its keyed subtree, and avoids rebuilding the transition unnecessarily.
      
      This significantly improves the performance of Chips (which uses AnimatedSwitcher to swap out it's avatar and delete icon children).
      1f5fcb74
  35. 03 May, 2018 1 commit
  36. 16 Apr, 2018 1 commit
    • Greg Spencer's avatar
      Rename AnimatedChildSwitcher to AnimatedSwitcher (#16551) · 6c049ec2
      Greg Spencer authored
      We don't really like the name AnimatedChildSwitcher, and we think that AnimatedSwitcher might be better (since the Child part is redundant). We also considered AnimatedChild, AnimatedTransition and AnimatedReplacement (among others).
      
      Nothing in here besides a rename.
      6c049ec2
  37. 12 Apr, 2018 1 commit
    • Greg Spencer's avatar
      Fix a bug in the AnimatedChildSwitcher, add builders. (#16250) · c73b8a7c
      Greg Spencer authored
      This fixes a rendering problem in the AnimatedChildSwitcher where it would add a new "previous" child each time it rebuilt, and if you did it fast enough, all of them would disappear from the page.
      
      It also expands the API for AnimatedChildSwitcher to allow you to specify your own transition and/or layout builder for the transition.
      
      Fixes #16226
      c73b8a7c
  38. 03 Apr, 2018 1 commit
    • Greg Spencer's avatar
      Add AnimatedChildSwitcher widget (#16192) · 6c896ae1
      Greg Spencer authored
      The AnimatedChildSwitcher widget (originally authored by Hixie), will cross-fade between a new child, and a previous child (or children, if the switch happens faster than the fade finishes).
      
      It's a good candidate for places where a widget will be added/removed from a slot, and you want a nice transition to occur.
      6c896ae1