Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
3d7bab1
Markdown cleanup
domesticmouse Nov 7, 2025
fb73f38
Update `adaptive_app`
domesticmouse Nov 7, 2025
a70bc72
Update `animated-responsive-layout`
domesticmouse Nov 7, 2025
9135083
Update `animations`
domesticmouse Nov 7, 2025
d5ea86a
Update `audio_soloud`
domesticmouse Nov 7, 2025
5387fdd
Update `boring_to_beautiful`
domesticmouse Nov 7, 2025
356bfa7
Update `brick_breaker`
domesticmouse Nov 7, 2025
6e54e68
Update `colorist`
domesticmouse Nov 7, 2025
700f4a0
Update `dart-patterns-and-records`
domesticmouse Nov 7, 2025
98cfd20
Update `deeplink_cookbook`
domesticmouse Nov 7, 2025
056e49e
Update `ffigen_codelab`
domesticmouse Nov 7, 2025
f563b22
Update `firebase-auth-flutterfire-ui`
domesticmouse Nov 7, 2025
0b7da3a
Update `firebase-emulator-suite`
domesticmouse Nov 7, 2025
385d3d5
Update `firebase-get-to-know-flutter`
domesticmouse Nov 7, 2025
a9dc303
Update `forge2d_game`
domesticmouse Nov 7, 2025
650142c
Update `generate_crossword`
domesticmouse Nov 7, 2025
6132e47
Update `github-client`
domesticmouse Nov 7, 2025
3203ef6
Update `google-maps-in-flutter`
domesticmouse Nov 7, 2025
28cf2ff
Update `haiku_generator`
domesticmouse Nov 7, 2025
5948482
Update `homescreen_codelab`
domesticmouse Nov 7, 2025
99096fc
Update `in_app_purchases`
domesticmouse Nov 7, 2025
f0df187
Update `namer`
domesticmouse Nov 7, 2025
b980573
Update `next-gen-ui`
domesticmouse Nov 7, 2025
a54221a
Update `testing_codelab`
domesticmouse Nov 7, 2025
fce6f1b
Update `tfagents-flutter`
domesticmouse Nov 7, 2025
0d63f53
Update `tfrs-flutter`
domesticmouse Nov 7, 2025
d6b47c0
Update `tfserving-flutter`
domesticmouse Nov 7, 2025
aa13a52
Update `webview_flutter`
domesticmouse Nov 7, 2025
79c2eab
Update `generate_crossword`
domesticmouse Nov 10, 2025
59e60d2
Update rebuild script
domesticmouse Nov 11, 2025
64da078
`in_app_purchases`: `subscriptions.get` is deprecated.
domesticmouse Nov 11, 2025
b8c8c43
Update deps
domesticmouse Nov 11, 2025
ff66297
Revert to Protobuf 4
domesticmouse Nov 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions adaptive_app/step_03/android/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ android {
ndkVersion = flutter.ndkVersion

compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

kotlinOptions {
jvmTarget = JavaVersion.VERSION_11.toString()
jvmTarget = JavaVersion.VERSION_17.toString()
}

defaultConfig {
Expand Down
1 change: 0 additions & 1 deletion adaptive_app/step_03/android/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
org.gradle.jvmargs=-Xmx8G -XX:MaxMetaspaceSize=4G -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryError
android.useAndroidX=true
android.enableJetifier=true
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14-all.zip
4 changes: 2 additions & 2 deletions adaptive_app/step_03/android/settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ pluginManagement {

plugins {
id("dev.flutter.flutter-plugin-loader") version "1.0.0"
id("com.android.application") version "8.9.1" apply false
id("org.jetbrains.kotlin.android") version "2.1.0" apply false
id("com.android.application") version "8.11.1" apply false
id("org.jetbrains.kotlin.android") version "2.2.20" apply false
}

include(":app")
34 changes: 19 additions & 15 deletions adaptive_app/step_03/linux/runner/my_application.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ struct _MyApplication {
G_DEFINE_TYPE(MyApplication, my_application, GTK_TYPE_APPLICATION)

// Called when first Flutter frame received.
static void first_frame_cb(MyApplication* self, FlView *view)
{
static void first_frame_cb(MyApplication* self, FlView* view) {
gtk_widget_show(gtk_widget_get_toplevel(GTK_WIDGET(view)));
}

Expand Down Expand Up @@ -56,19 +55,22 @@ static void my_application_activate(GApplication* application) {
gtk_window_set_default_size(window, 1280, 720);

g_autoptr(FlDartProject) project = fl_dart_project_new();
fl_dart_project_set_dart_entrypoint_arguments(project, self->dart_entrypoint_arguments);
fl_dart_project_set_dart_entrypoint_arguments(
project, self->dart_entrypoint_arguments);

FlView* view = fl_view_new(project);
GdkRGBA background_color;
// Background defaults to black, override it here if necessary, e.g. #00000000 for transparent.
// Background defaults to black, override it here if necessary, e.g. #00000000
// for transparent.
gdk_rgba_parse(&background_color, "#000000");
fl_view_set_background_color(view, &background_color);
gtk_widget_show(GTK_WIDGET(view));
gtk_container_add(GTK_CONTAINER(window), GTK_WIDGET(view));

// Show the window when Flutter renders.
// Requires the view to be realized so we can start rendering.
g_signal_connect_swapped(view, "first-frame", G_CALLBACK(first_frame_cb), self);
g_signal_connect_swapped(view, "first-frame", G_CALLBACK(first_frame_cb),
self);
gtk_widget_realize(GTK_WIDGET(view));

fl_register_plugins(FL_PLUGIN_REGISTRY(view));
Expand All @@ -77,16 +79,18 @@ static void my_application_activate(GApplication* application) {
}

// Implements GApplication::local_command_line.
static gboolean my_application_local_command_line(GApplication* application, gchar*** arguments, int* exit_status) {
static gboolean my_application_local_command_line(GApplication* application,
gchar*** arguments,
int* exit_status) {
MyApplication* self = MY_APPLICATION(application);
// Strip out the first argument as it is the binary name.
self->dart_entrypoint_arguments = g_strdupv(*arguments + 1);

g_autoptr(GError) error = nullptr;
if (!g_application_register(application, nullptr, &error)) {
g_warning("Failed to register: %s", error->message);
*exit_status = 1;
return TRUE;
g_warning("Failed to register: %s", error->message);
*exit_status = 1;
return TRUE;
}

g_application_activate(application);
Expand All @@ -97,7 +101,7 @@ static gboolean my_application_local_command_line(GApplication* application, gch

// Implements GApplication::startup.
static void my_application_startup(GApplication* application) {
//MyApplication* self = MY_APPLICATION(object);
// MyApplication* self = MY_APPLICATION(object);

// Perform any actions required at application startup.

Expand All @@ -106,7 +110,7 @@ static void my_application_startup(GApplication* application) {

// Implements GApplication::shutdown.
static void my_application_shutdown(GApplication* application) {
//MyApplication* self = MY_APPLICATION(object);
// MyApplication* self = MY_APPLICATION(object);

// Perform any actions required at application shutdown.

Expand All @@ -122,7 +126,8 @@ static void my_application_dispose(GObject* object) {

static void my_application_class_init(MyApplicationClass* klass) {
G_APPLICATION_CLASS(klass)->activate = my_application_activate;
G_APPLICATION_CLASS(klass)->local_command_line = my_application_local_command_line;
G_APPLICATION_CLASS(klass)->local_command_line =
my_application_local_command_line;
G_APPLICATION_CLASS(klass)->startup = my_application_startup;
G_APPLICATION_CLASS(klass)->shutdown = my_application_shutdown;
G_OBJECT_CLASS(klass)->dispose = my_application_dispose;
Expand All @@ -138,7 +143,6 @@ MyApplication* my_application_new() {
g_set_prgname(APPLICATION_ID);

return MY_APPLICATION(g_object_new(my_application_get_type(),
"application-id", APPLICATION_ID,
"flags", G_APPLICATION_NON_UNIQUE,
nullptr));
"application-id", APPLICATION_ID, "flags",
G_APPLICATION_NON_UNIQUE, nullptr));
}
5 changes: 4 additions & 1 deletion adaptive_app/step_03/linux/runner/my_application.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@

#include <gtk/gtk.h>

G_DECLARE_FINAL_TYPE(MyApplication, my_application, MY, APPLICATION,
G_DECLARE_FINAL_TYPE(MyApplication,
my_application,
MY,
APPLICATION,
GtkApplication)

/**
Expand Down
2 changes: 1 addition & 1 deletion adaptive_app/step_03/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1

environment:
sdk: ^3.9.0
sdk: ^3.10.0-0

# Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions
Expand Down
6 changes: 3 additions & 3 deletions adaptive_app/step_04/android/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ android {
ndkVersion = flutter.ndkVersion

compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

kotlinOptions {
jvmTarget = JavaVersion.VERSION_11.toString()
jvmTarget = JavaVersion.VERSION_17.toString()
}

defaultConfig {
Expand Down
1 change: 0 additions & 1 deletion adaptive_app/step_04/android/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
org.gradle.jvmargs=-Xmx8G -XX:MaxMetaspaceSize=4G -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryError
android.useAndroidX=true
android.enableJetifier=true
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14-all.zip
4 changes: 2 additions & 2 deletions adaptive_app/step_04/android/settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ pluginManagement {

plugins {
id("dev.flutter.flutter-plugin-loader") version "1.0.0"
id("com.android.application") version "8.9.1" apply false
id("org.jetbrains.kotlin.android") version "2.1.0" apply false
id("com.android.application") version "8.11.1" apply false
id("org.jetbrains.kotlin.android") version "2.2.20" apply false
}

include(":app")
Loading