Skip to content

Instantly share code, notes, and snippets.

View AlexV525's full-sized avatar
🌍
typedef Day = πŸ› || πŸ–₯

Alex Li AlexV525

🌍
typedef Day = πŸ› || πŸ–₯
  • China, Shanghai
  • 20:19 (UTC +08:00)
  • X @AlexV525
View GitHub Profile
@AlexV525
AlexV525 / test_icon_grid.dart
Last active April 2, 2021 07:58
Customized icon grid view
///
/// [Author] Alex (https://github.com/AlexV525)
/// [Date] 4/2/21 12:48 PM
///
import 'dart:math' as math;
import 'dart:ui';
import 'package:flutter/material.dart';
void main() {
@AlexV525
AlexV525 / model.dart
Last active June 12, 2024 21:08
Resolve response model with generic type and base model
///
/// [Author] Alex (https://github.com/AlexV525)
/// [Date] 11/26/20 4:31 PM
///
import 'dart:convert';
import 'dart:core';
import 'package:flutter/foundation.dart';
import 'package:equatable/equatable.dart';
@AlexV525
AlexV525 / string_pattern_extension.dart
Last active February 15, 2021 14:55
Dart endsWithPattern extension on String
///
/// [Author] Alex (https://github.com/AlexV525)
/// [Date] 2/15/21 22:30 PM
///
import 'dart:math' as math;
extension StringEndsWithRegEx on String {
bool endsWithPattern(Pattern other) {
if (other is String) {
return endsWith(other);
@AlexV525
AlexV525 / slide_menu_item.dart
Last active September 28, 2021 01:46
Slidable menu and item widget.
///
/// [Author] Alex (https://github.com/AlexV525)
/// [Date] 1/22/21 11:13 AM
///
import 'dart:ui' as ui;
import 'package:flutter/material.dart';
class SlideMenuItem extends StatelessWidget {
const SlideMenuItem({
@AlexV525
AlexV525 / function_extension.dart
Created December 26, 2020 06:33
De-bounce and throttle
///
/// [Author] Alex (https://github.com/AlexV525)
/// [Date] 2020-12-26 11:51
///
import 'dart:async';
import 'package:flutter/foundation.dart';
/// ι˜²ζŠ–ε’ŒθŠ‚ζ΅
///
@AlexV525
AlexV525 / create_images.dart
Last active November 17, 2023 10:28
How do we create images through RepaintBoundary or Widget? (Null safety version)
///
/// [Author] Alex (https://github.com/AlexV525)
/// [Date] 07/30/21 5:29 PM
///
import 'dart:typed_data';
import 'dart:ui' as ui;
import 'package:flutter/rendering.dart';
import 'package:flutter/widgets.dart';
@AlexV525
AlexV525 / main.md
Created November 17, 2020 16:03
LGTM
β–ˆβ–ˆβ•—      β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ•—   β–ˆβ–ˆβ–ˆβ•—
β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ•”β•β•β•β•β• β•šβ•β•β–ˆβ–ˆβ•”β•β•β•β–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ•‘
β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ–ˆβ•—   β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•”β–ˆβ–ˆβ–ˆβ–ˆβ•”β–ˆβ–ˆβ•‘
β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•‘
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•   β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘ β•šβ•β• β–ˆβ–ˆβ•‘
β•šβ•β•β•β•β•β•β• β•šβ•β•β•β•β•β•    β•šβ•β•   β•šβ•β•     β•šβ•β•
@AlexV525
AlexV525 / rules.md
Last active October 27, 2020 03:55
Flutter εΌ€ε‘θ§„θŒƒ
@AlexV525
AlexV525 / main.dart
Created September 14, 2020 08:40
How do you make timeline without Intrinsic?
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
debugShowCheckedModeBanner: false,