1. 28 Sep, 2021 1 commit
    • Greg Spencer's avatar
      Add smoke tests for all the examples, fix 17 broken examples. (#89021) · ab2b0851
      Greg Spencer authored
      This adds a smoke test for every single API example. It also fixes 17 tests that had bugs in them, or were otherwise broken, and even fixes one actual bug in the framework, and one limitation in the framework.
      
      The bug in the framework is that NetworkImage's _loadAsync method had await response.drain<List<int>>();, but if the response is null, it will throw a cryptic exception saying that Null can't be assigned to List<int>. The fix was just to use await response.drain<void>(); instead.
      
      The limitation is that RelativePositionedTransition takes an Animation<Rect> rect parameter, and if you want to use a RectTween with it, the value emitted there is Rect?, and one of the examples was just casting from Animation<Rect> to Animation<Rect?>, which is invalid, so I modified RelativePositionedTransition to take a Rect? and just use Rect.zero if the rect is null.
      ab2b0851
  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. 20 Feb, 2020 1 commit
  4. 25 Sep, 2019 1 commit
    • Greg Spencer's avatar
      Desktop manual tests (#41247) · 9749f59c
      Greg Spencer authored
      This enables the manual tests to be built on a macOS desktop machine in desktop mode.
      
      I created the macos directory by using flutter create --macos
      9749f59c
  5. 20 Sep, 2019 1 commit
    • stuartmorgan's avatar
      Support create for macOS (app and plugin) (#40851) · 0412977e
      stuartmorgan authored
      Adds macOS support for `flutter create`:
      - Currently it is behind a hidden flag.
      - Adds a TargetPlatform workaround to lib/main.dart in the standard app template when enabled.
      - Supports `app` and `plugin`; `module` support doesn't yet exist for macOS in general.
      
      This will eliminate the need to use FDE's examples as templates on macOS. The templates are based on the current state of FDE's examples, with templating support added (and with adoption of the new application delegate in the app, which hadn't been done yet in FDE, eliminating some boilerplate from the template).
      
      Fixes #30703 
      0412977e
  6. 31 Oct, 2018 1 commit
    • Dan Field's avatar
      Re-reland Xcode backend refactor (#23762) · fd6b2e19
      Dan Field authored
      * Use Xcode build configurations to drive Flutter build mode
      
      * Proper check wrt local_engine, print error if profile mode misisng
      
      * Remove unused code, update tests, fix template problem, update warning
      
      * fix up warning
      
      * add explanatory dev comment
      
      * fix whitespace
      
      * missing words, change lambda arrow to function body
      
      * error indentation
      
      * Test early exits for xcode_backend.sh
      
      * only on macOS, use right test
      
      * Update error messages
      
      * case insensitive compare for build config
      
      * Update gallery podfile
      
      * update projects to add profile configuration
      
      * make compatible with flavors
      
      * add missing plist files
      
      * add FLUTTER_FRAMEWORK_DIR back, set swift version for profile, tell Podfile about profile
      fd6b2e19
  7. 25 Sep, 2018 1 commit
    • Mikkel Nygaard Ravn's avatar
      Support materializing Flutter module host app on iOS (#21276) · a600fe7f
      Mikkel Nygaard Ravn authored
      * Prototype
      
      * Fix paths to Flutter library resources
      
      * Invoke pod install as necessary for materialized modules
      
      * Add devicelab test for module use on iOS
      
      * Remove debug output
      
      * Rebase, reame materialize editable
      
      * Add devicelab test editable iOS host app
      
      * Removed add2app test section
      a600fe7f