Skip to content

Instantly share code, notes, and snippets.

@FantaZZ
FantaZZ / sedit.py
Last active December 9, 2022 05:13
Edit remote host file with scp
#!/usr/bin/env python3
import sys
import os
import time
max_idle = 60 * 5
default_editor = 'open'
vscode = '/usr/local/bin/code'
sublime = '/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl'
import 'dart:math';
import 'dart:ui';
import 'package:flutter/cupertino.dart';
import 'package:flutter/gestures.dart';
const double _kBackGestureWidth = 20.0;
const double _kMinFlingVelocity = 1.0;
const int _kMaxDroppedSwipePageForwardAnimationTime = 800;
const int _kMaxPageBackAnimationTime = 300;
@FantaZZ
FantaZZ / custom_sliver_app_bar.dart
Last active September 3, 2021 18:27
Easy way to animte SliverPersistentHeader by custom SliverAppBar
import 'package:flutter/material.dart';
import 'package:flutter_base_test/utils/logger.dart';
main() {
runApp(
MaterialApp(
home: HomeView(),
),
);
}