- Create
open_link_example.c
#include <gtk/gtk.h>
#include <stdlib.h>
void open_link(GtkButton *button, gpointer user_data) {
const gchar *url = "https://example.com";
GError *error = NULL;
open_link_example.c
#include <gtk/gtk.h>
#include <stdlib.h>
void open_link(GtkButton *button, gpointer user_data) {
const gchar *url = "https://example.com";
GError *error = NULL;
import "package:flutter/material.dart"; | |
import "package:video_player/video_player.dart"; | |
void main() => runApp(const VideoApp()); | |
/// Stateful widget to fetch and then display video content. | |
class VideoApp extends StatefulWidget { | |
const VideoApp({super.key}); | |
@override | |
_VideoAppState createState() => _VideoAppState(); |
// Copyright 2019 the Dart project authors. All rights reserved. | |
// Use of this source code is governed by a BSD-style license | |
// that can be found in the LICENSE file. | |
import 'package:flutter/material.dart'; | |
import 'package:web/web.dart'; | |
void main() => runApp(const MyApp()); |
gtk_text_example.c
file:#include <gtk/gtk.h>
// Callback function to handle the "destroy" signal
void on_destroy(GtkWidget *widget, gpointer data) {
gtk_main_quit();
}
Open a remote windows
:Connect to WSL using Distro..
. By default, there is only Ubuntu (wsl1), you can use it if you want. But if you want to use WSL2, need to install another distro4.1. List all available distros:
directory_picker.c
file:#include <gtk/gtk.h>
// Callback function for the "Open" button
void open_button_clicked(GtkWidget *widget, gpointer data) {
GtkWidget *dialog;
const gchar *selected_folder;
System directories
Method | Result |
---|---|
Environment.getDataDirectory() | /data |
Environment.getDownloadCacheDirectory() | /cache |
Environment.getRootDirectory() | /system |
External storage directories
1. From the terminal, go to your current iOS native project, for eg: /Users/.../reproduce_issue_ios_native_addtoapp_optionA/
2. Group all current files/directories into a new directory (named MyApp
for eg)
pubspec.yaml
flutter_driver:
sdk: flutter
1. From the terminal, go to your current iOS native project, for eg: /Users/.../ios_native_addtoapp/
2. Create flutter module and go to module directory
flutter create --template module my_flutter
cd my_flutter