Skip to content

Instantly share code, notes, and snippets.

@gzlock
gzlock / .dart
Last active March 15, 2021 09:24
Flutter Stacked Item ListView
import 'dart:ui';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@gzlock
gzlock / photoshop_flutter_ios_icon.js
Last active February 23, 2020 16:00
一键输出flutter iOS各种尺寸icon文件的photoshop脚本
/***
*
* rootscript copy from https://github.com/codearoni/generator-gizmo/blob/master/app/templates/jsx/rootscript.jsx
*
***/
/* jshint ignore:start */
/**
* Date.now - from: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/now
*/
@gzlock
gzlock / AutoLoadScene.cs
Last active March 11, 2019 15:06
Load the initial scene when the Unity3d editor mode state change to play
/**
Please checkout the first comment.
请查看第一个留言。
**/
using UnityEditor;
using UnityEngine;
using UnityEngine.SceneManagement;
[InitializeOnLoad]
public class AutoLoadScene
@gzlock
gzlock / ExecutionOrderAttribute.cs
Last active December 21, 2017 13:09
Copy from https://github.com/Thundernerd/Unity3D-ExecutionOrderAttribute 用于使用代码控制脚本的执行顺序
using System;
using System.Collections.Generic;
#if UNITY_EDITOR
using System.IO;
using UnityEditor;
#endif
using UnityEngine;
[AttributeUsage( AttributeTargets.Class, Inherited = false, AllowMultiple = false )]
sealed class ExecutionOrderAttribute : Attribute {