Skip to content

Instantly share code, notes, and snippets.

View mihalycsaba's full-sized avatar
🇵🇸
Free Palestine

Csaba mihalycsaba

🇵🇸
Free Palestine
View GitHub Profile
@yaashwardhan
yaashwardhan / main.dart
Last active January 10, 2023 17:22
Passing data to a Stateful Widget from another Stateful Widget
import 'package:flutter/material.dart';
import 'page1.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
@AlexV525
AlexV525 / create_images.dart
Last active October 12, 2025 07:27
How do we create images through `RepaintBoundary` or `Widget` in Flutter?
// Author: Alex Li (https://github.com/AlexV525)
// Date: 2025/10/10
import 'dart:typed_data';
import 'dart:ui' as ui;
import 'package:flutter/rendering.dart';
import 'package:flutter/widgets.dart';
/// Create an image from given [GlobalKey], which is attached to an exist