Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed in Flutter 3.24.X, Available on idx.dev and Github CodeSpaces #5

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM dart

RUN apt-get update
RUN apt-get install -y curl git unzip xz-utils zip libglu1-mesa

RUN apt-get clean

RUN git clone https://github.com/flutter/flutter.git -b 3.24.5 --depth 1 /flutter
ENV PATH="/flutter/bin:$PATH"
RUN flutter doctor
15 changes: 15 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"build": {
"dockerfile": "Dockerfile"
},
"forwardPorts": [3000],
"name": "Flutter",
"customizations": {
"vscode": {
"extensions": [
"Dart-Code.dart-code",
"Dart-Code.flutter"
]
}
}
}
16 changes: 12 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
.history
.svn/
migrate_working_dir/
logs/
*.lock
.metadata
analysis_options.yaml

# IntelliJ related
*.iml
Expand All @@ -31,14 +35,18 @@ migrate_working_dir/
.pub-cache/
.pub/
/build/
.metadata

# Symbolication related
app.*.symbols

# Obfuscation related
app.*.map.json

# Android Studio will place build artifacts here
/android/app/debug
/android/app/profile
/android/app/release
# VM
android/
ios/
linux/
macos/
windows/
web/
40 changes: 40 additions & 0 deletions .idx/dev.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{pkgs}: {
channel = "stable-24.11";
packages = [
pkgs.jdk17
pkgs.unzip
];
idx.extensions = [

];
idx.previews = {
previews = {
web = {
command = [
"flutter"
"run"
"--machine"
"-d"
"web-server"
"--web-hostname"
"0.0.0.0"
"--web-port"
"$PORT"
];
manager = "flutter";
};
android = {
command = [
"flutter"
"run"
"--machine"
"-d"
"android"
"-d"
"localhost:5555"
];
manager = "flutter";
};
};
};
}
39 changes: 0 additions & 39 deletions .metadata

This file was deleted.

20 changes: 11 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ A new Flutter project.

## Getting Started

This project is a starting point for a Flutter application.
In the ports view (the PORTS tab), port 3000 should be listed there already. Right click on it, and, under "Port Visibility", select "Public". This is important so the app can access services on your client from other server ports without getting blocked due to CORS.

A few resources to get you started if this is your first Flutter project:

- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)

For help getting started with Flutter development, view the
[online documentation](https://docs.flutter.dev/), which offers tutorials,
samples, guidance on mobile development, and a full API reference.
```bush
flutter run -d web-server --web-hostname 0.0.0.0 --web-port 3000
```
### Go to http://<hi1>0.0.0.0:3000<hi2>
Please wait a few minutes.
### When you return to the terminal, you will see the following message in the terminal:
```bush
🔥 To hot restart changes while running, press "r" or "R".
For a more detailed help message, press "h". To quit, press "q".
```
13 changes: 0 additions & 13 deletions android/.gitignore

This file was deleted.

68 changes: 0 additions & 68 deletions android/app/build.gradle

This file was deleted.

8 changes: 0 additions & 8 deletions android/app/src/debug/AndroidManifest.xml

This file was deleted.

34 changes: 0 additions & 34 deletions android/app/src/main/AndroidManifest.xml

This file was deleted.

This file was deleted.

Binary file removed android/app/src/main/res/drawable-v21/background.png
Binary file not shown.
6 changes: 0 additions & 6 deletions android/app/src/main/res/drawable-v21/launch_background.xml

This file was deleted.

Binary file removed android/app/src/main/res/drawable/background.png
Binary file not shown.
6 changes: 0 additions & 6 deletions android/app/src/main/res/drawable/launch_background.xml

This file was deleted.

Binary file not shown.
Binary file not shown.
18 changes: 0 additions & 18 deletions android/app/src/main/res/values-night/styles.xml

This file was deleted.

22 changes: 0 additions & 22 deletions android/app/src/main/res/values/styles.xml

This file was deleted.

8 changes: 0 additions & 8 deletions android/app/src/profile/AndroidManifest.xml

This file was deleted.

18 changes: 0 additions & 18 deletions android/build.gradle

This file was deleted.

3 changes: 0 additions & 3 deletions android/gradle.properties

This file was deleted.

5 changes: 0 additions & 5 deletions android/gradle/wrapper/gradle-wrapper.properties

This file was deleted.

Loading