os: linux
before_script:
  - git clone https://github.com/flutter/flutter.git --depth 1
  - export PATH=`pwd`/flutter/bin:`pwd`/flutter/bin/cache/dart-sdk/bin:$PATH
  - flutter doctor
script: ./tool/travis.sh

os: linux
before_script:
  - git clone https://github.com/flutter/flutter.git --shallow-exclude=dev
  - pushd flutter
  - git fetch --deepen=1
  - popd
  - export PATH=`pwd`/flutter/bin:`pwd`/flutter/bin/cache/dart-sdk/bin:$PATH
  - flutter doctor
script: ./tool/travis.sh

Make flutter_widgets's Travis configuration clone the Flutter SDK with some history
Make flutter_widgets's Travis configuration clone the Flutter SDK with some history

The Travis configuration cloned the Flutter SDK with `git clone
--depth=1` to be less wasteful, but doing so prevents Flutter tooling
from determining the Flutter version.  This then broken dependency
version solving now that flutter_widgets has a Flutter SDK version
constraint.

Instead, make a shallow clone of the Flutter SDK repo from the dev
branch, which should be tagged with a version number.

PiperOrigin-RevId: 267771439
