Skip to content

Commit

Permalink
Fixed in Flutter 3.10.6, Available on idx.dev and Github CodeSpaces
Browse files Browse the repository at this point in the history
  • Loading branch information
911432 authored Dec 15, 2024
1 parent 7fe218d commit 937c074
Show file tree
Hide file tree
Showing 6 changed files with 108 additions and 40 deletions.
11 changes: 11 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
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.10.6 --depth 1 /flutter
ENV PATH="/flutter/bin:$PATH"
RUN flutter doctor
RUN dart fix --apply
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";
};
};
};
}
13 changes: 3 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,6 @@ A new Flutter project.

## Getting Started

This project is a starting point for a Flutter application.

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
```
53 changes: 27 additions & 26 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ version: 1.0.0+1

environment:
sdk: '>=3.0.0 <4.0.0'
flutter: 3.10.6

# Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions
Expand All @@ -32,47 +33,47 @@ dependencies:
sdk: flutter

#splash creator
flutter_native_splash: ^2.3.0
flutter_native_splash: ^2.4.0

#dart
meta: ^1.4.0
quiver: ^3.2.1
equatable: ^2.0.5
meta: ^1.11.0
quiver: ^3.2.2
equatable: ^2.0.7

#util
velocity_x: ^4.1.2

#data
shared_preferences: ^2.0.15
isar: 3.1.0
isar_flutter_libs: 3.1.0
shared_preferences: ^2.2.3
isar: ^3.1.0+1
isar_flutter_libs: ^3.1.0+1

#architecture
event_bus: ^2.0.0
get: ^4.6.5
event_bus: ^2.0.1
get: ^4.6.6

#ui - resource
eva_icons_flutter: ^3.1.0
google_fonts: ^4.0.4
easy_localization: ^3.0.2
flutter_cache_manager: ^3.3.0
google_fonts: ^4.0.5
easy_localization: ^3.0.7
flutter_cache_manager: ^3.4.1

#ui - widget
nav: ^1.3.9
nav: ^1.4.3
simple_shadow: ^0.3.1
after_layout: ^1.2.0
flutter_svg: ^2.0.3
cached_network_image: ^3.2.3
flutter_svg: ^2.0.10+1
cached_network_image: ^3.4.0

#ui - util
keyboard_utils_fork: ^0.0.4

#network
dio: ^5.0.0
retrofit: ^4.0.1
freezed: ^2.3.4
freezed_annotation: ^2.2.0
json_annotation: ^4.8.0
dio: ^5.7.0
retrofit: ^4.4.1
freezed: ^2.5.2
freezed_annotation: ^2.4.4
json_annotation: ^4.9.0

dev_dependencies:
flutter_test:
Expand All @@ -83,14 +84,14 @@ dev_dependencies:
# activated in the `analysis_options.yaml` file located at the root of your
# package. See that file for information about deactivating specific lint
# rules and activating additional ones.
flutter_lints: ^2.0.0
flutter_lints: ^2.0.3
retrofit_generator: '5.0.0'
build_runner: '2.3.3'
json_serializable: ^6.6.1
isar_generator: 3.1.0
json_serializable: ^6.8.0
isar_generator: ^3.1.0+1
mock_web_server: ^5.0.0-nullsafety.1
flutter_oss_licenses: ^2.0.1
test: ^1.22.0
flutter_oss_licenses: ^2.0.3
test: ^1.24.9



Expand Down Expand Up @@ -137,4 +138,4 @@ flutter:
# weight: 700
#
# For details regarding fonts from package dependencies,
# see https://flutter.dev/custom-fonts/#from-packages
# see https://flutter.dev/custom-fonts/#from-packages

0 comments on commit 937c074

Please sign in to comment.