An open API service indexing awesome lists of open source software.

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

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 terminal

Run 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`