1. 14 Jul, 2020 1 commit
    • Jonah Williams's avatar
      [flutter_tools] update fastReassemble method for single widget reloads (#61413) · 485034ca
      Jonah Williams authored
      For #61407 , we need to be able to find all widgets that of a given type. Previously I experimented with using the type name, but of course this does not handles subtypes. The actual check needs to be an is check.
      
      Since there is no way to convert a String to a Type at runtime for use in this check, we can instead evaluate an expression which assigns a closure to a field. The idea for this was inspired by how the dart devtools adds debug functionality to older versions of flutter.
      
      Since the reload feature is not complete yet, adds an integration test which simulates how it will eventually behave
      485034ca
  2. 10 Jul, 2020 2 commits
  3. 24 Jun, 2020 1 commit
    • Jonah Williams's avatar
      [flutter_tools] de-flake integration tests (#60221) · f8c9e1bb
      Jonah Williams authored
      The vm_service_integration test flake is caused by trying to call the method before the framework is initialized (and the extension added). The run errors failure is caused by the error taking some time to propagate to the harness
      f8c9e1bb
  4. 18 Jun, 2020 1 commit
    • Jonah Williams's avatar
      [flutter_tools] add toggle `b` and service extension to change platform brightness (#59571) · e1f4cfb4
      Jonah Williams authored
      A frequent request from the last Flutter developer survey was for an easier method of testing light/dark mode changes. Currently, a user needs to manually change the theme settings or adjust phone settings to see the difference. Instead we should add a toggle from the CLI, and eventually devtools/Intellij/Vscode that allows developers to override the current setting.
      
      Fixes #59495
      
      Adds flutter.ext.brightnessOverride service protocol which either queries the current platform brightness, or overrides it to a new value. This accepts either Brightness.light or Brightness.dark as a value.
      
      Adds a CLI toggle b which allows the setting to be toggled manually.
      
      Requires an update to the MediaQuery, to conditionally use a debug override when not in release mode
      e1f4cfb4
  5. 27 May, 2020 1 commit
  6. 14 May, 2020 1 commit
  7. 04 May, 2020 1 commit
  8. 14 Apr, 2020 1 commit