Skip to content

Instantly share code, notes, and snippets.

View yamatatsu10969's full-sized avatar
:octocat:
Working at home

Yamamoto Tatsuya yamatatsu10969

:octocat:
Working at home
View GitHub Profile
@flutter-clutter
flutter-clutter / overlay_with_hole.dart
Created June 27, 2020 12:08
Flutter overlay with a hole
import 'package:flutter/material.dart';
class OverlayWithHole extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: Text("Flutterclutter: Holes")),
body: _getExperimentOne()
);
}
@rrousselGit
rrousselGit / main.dart
Created July 2, 2020 04:26
reading a family without the key
final todosFamily = ProviderFamily<Todo, int>((ref, id) {
return Todo(
id: '$id',
description: 'Todo $id',
);
});
final currentTodo = Provider<Todo>((ref) => null);
class List extends StatelessWidget {
@1amageek
1amageek / AppDelegate.swift
Created November 4, 2020 08:19
Adding Firebase to AppDelegate in SwiftUI
import SwiftUI
import Firebase
class AppDelegate: UIResponder, UIApplicationDelegate {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
FirebaseApp.configure()
return true
}
}
@kwaiks
kwaiks / dio_helper.dart
Created January 27, 2021 10:53
Flutter Dio Interceptor for refresh token
class DioHelper {
final Dio dio;
DioHelper({@required this.dio});
final CustomSharedPreferences _customSharedPreferences =
new CustomSharedPreferences();
static String _baseUrl = BASE_URL;
String token = "";
void initializeToken(String savedToken) {
@mh-mobile
mh-mobile / discord-enter-modification.json
Last active December 8, 2023 11:48
DiscordのEnterキーの挙動変更(Karabiner-Elements)- Enterで改行 / Command + Enterで送信
{
"title": "Discord-Enter-Modification",
"rules": [
{
"description": "Discord-Enter-Modification",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "return_or_enter"
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for NavigationBar with nested Navigator destinations.
import 'package:flutter/material.dart';
class Destination {
const Destination(this.index, this.title, this.icon, this.color);
@susatthi
susatthi / .commit_template
Last active May 12, 2022 23:20
コミットテンプレート
# ==================== Emojis & Prefix ====================
# ✨ feat: 新しい機能
# 🐛 fix: バグの修正
# 📚 docs: ドキュメントのみの変更
# 🖋 style: 空白、フォーマット、セミコロン追加など
# ♻️ refactor: 仕様に影響がないコード改善(リファクタ)
# 🐎 perf: パフォーマンス向上関連
# 🚨 test: テスト関連
targets:
$default:
builders:
# 他の指定は省略
source_gen|combining_builder:
options:
ignore_for_file:
- type=lint
- implicit_dynamic_parameter
- implicit_dynamic_type