Skip to content

Instantly share code, notes, and snippets.

View ryanlid's full-sized avatar
🎯
Focusing

ryanlid ryanlid

🎯
Focusing
View GitHub Profile
@ryanlid
ryanlid / 微信读书全宽版.user.js
Last active May 23, 2022 03:16
微信读书全宽版
// ==UserScript==
// @name 微信读书全宽版
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://weread.qq.com/web/reader/*
// @grant GM_addStyle
// ==/UserScript==
@ryanlid
ryanlid / main.dart
Created February 16, 2020 15:38
ClipPath 路径剪裁
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
@ryanlid
ryanlid / main.dart
Created February 16, 2020 15:35
ClipRect 矩形裁剪
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
@ryanlid
ryanlid / main.dart
Created February 16, 2020 15:28
ClipRRect 圆角矩形裁剪
import 'package:flutter/material.dart';
void main() {
runApp((MyApp()));
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
@ryanlid
ryanlid / main.dart
Created February 16, 2020 15:23
CliOval 圆形剪裁
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
@ryanlid
ryanlid / main.dart
Created February 16, 2020 15:20
RotatedBox 旋转盒子
import 'package:flutter/material.dart';
void main() {
runApp(
MyApp(),
);
}
class MyApp extends StatelessWidget {
@override
@ryanlid
ryanlid / main.dart
Created February 16, 2020 15:18
RadialGradient 环形渐变效果
import 'package:flutter/material.dart';
void main() {
runApp(
MaterialApp(
title: "RadizlGradient 环形渐变效果",
home: LayoutDemo(),
),
);
}
@ryanlid
ryanlid / main.dart
Created February 16, 2020 15:12
LinearGradient 线性渐变效果
import 'package:flutter/material.dart';
void main() {
runApp(
MaterialApp(
title: "LinearGradient线性渐变效果",
home: LayoutDemo(),
),
);
}
@ryanlid
ryanlid / main.dart
Created February 16, 2020 15:09
BoxDecoration 装饰盒子
import 'package:flutter/material.dart';
void main() {
runApp(MaterialApp(
title: "BoxDecoration装饰盒子",
home: LayoutDemo(),
));
}
class LayoutDemo extends StatelessWidget {
@ryanlid
ryanlid / main.dart
Created February 16, 2020 14:51
BoxDecoration装饰盒子-背景图片
import 'package:flutter/material.dart';
void main() {
runApp(MaterialApp(
title: "BoxDecoration装饰盒子-背景图片",
home: LayoutDemo(),
));
}
class LayoutDemo extends StatelessWidget {