https://github.com/Rexios80/flutter_m1_patcher
Replaces Flutter's bundled Dart SDK with the macOS arm64 version
https://github.com/Rexios80/flutter_m1_patcher
Last synced: 2 months ago
JSON representation
Replaces Flutter's bundled Dart SDK with the macOS arm64 version
- Host: GitHub
- URL: https://github.com/Rexios80/flutter_m1_patcher
- Owner: Rexios80
- License: bsd-3-clause
- Archived: true
- Created: 2021-12-16T06:02:47.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-01-22T18:21:16.000Z (over 2 years ago)
- Last Synced: 2025-03-01T21:03:34.313Z (3 months ago)
- Language: Dart
- Homepage: https://pub.dev/packages/flutter_m1_patcher
- Size: 19.5 KB
- Stars: 20
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
NOTE: Flutter 3.0.0 includes the arm64 dart sdk by default. This package is no longer needed unless you are using older versions of Flutter.
___
This script replaces Flutter's bundled Dart SDK with the macOS arm64 version
## Getting Started
Set up Flutter as normal and run `flutter doctor`Install Dart form homebrew:
```console
$ brew tap dart-lang/dart
$ brew install dart
```
This script nukes Flutter's bundled Dart SDK, so trying to run this script with Flutter's bundled Dart SDK will fail## Use as an executable
### Installation
```console
$ dart pub global activate flutter_m1_patcher
```### Usage
Run `flutterpatch` in a terminalRun with `-p` to specify the Flutter root path
## Additional Information
If things go bad, delete `flutter/bin/cache` and run `flutter doctor`. This will reset the bundled Dart SDK to the one shipped with Flutter.You will need to run `flutterpatch` after every `flutter upgrade`