Skip to content

Instantly share code, notes, and snippets.

View yumi0629's full-sized avatar
🌸
Focusing

吉原拉面 yumi0629

🌸
Focusing
  • Shanghai
View GitHub Profile
@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
@slightfoot
slightfoot / page_turn.dart
Created September 9, 2019 21:28
Page Turn Effect - By Simon Lightfoot. Replicating this behaviour. https://www.youtube.com/watch?v=JqvtZwIJMLo
// MIT License
//
// Copyright (c) 2019 Simon Lightfoot
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
@CaiJingLong
CaiJingLong / custom_list.dart
Created November 21, 2018 08:14
一个自定义的dart list 示例
import 'dart:collection';
class MyList<E> extends Object with ListMixin<E> implements List<E> {
var _array = <E>[];
@override
int get length => _array.length;
@override
void set length(int newLength) => _array.length = newLength;