Skip to content

Instantly share code, notes, and snippets.

View heyhey1028's full-sized avatar

heyhey1028 heyhey1028

  • Money Forward Inc.
  • Tokyo, Japan
View GitHub Profile
@heyhey1028
heyhey1028 / create_post_model.dart
Created September 14, 2023 22:50
sample on Flash package for Terada-san (G's Expansion 202309)
// flutter
import 'package:flash/flash_helper.dart';
import 'package:flutter/material.dart';
// packages
import 'package:flash/flash.dart';
import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
// constants
import 'package:udemy_flutter_sns/constants/strings.dart';
import 'package:udemy_flutter_sns/domain/post/post.dart';
@heyhey1028
heyhey1028 / settings.json
Created June 15, 2023 00:26
My vscode format settings for Dart
{
"[dart]": {
"editor.defaultFormatter": "Dart-Code.dart-code",
"editor.formatOnSave": true,
"editor.formatOnType": true,
"editor.rulers": [
500
],
"editor.selectionHighlight": false,
"editor.suggest.snippetsPreventQuickSuggestions": false,
@heyhey1028
heyhey1028 / !README.md
Last active May 22, 2023 07:59
[ Github Actions ] Automatically assign assignee to dependabot PRs

What is this?

Github Actions workflow dedicated to automatically assign random assignee to PRs created by dependabot.

Context

Dependabot automatically creates PRs based on the updates of packages and libraries that project is depended on. When PRs are created, team members should check if upgrading the version will break the project or not. In case of breaking changes, member should refactor the project accordingly. Although PRs are created, often these PRs are left unchecked as team members become busy. In accordance to the situation, assigning members randomly would prevent PRs being unchecked.

@heyhey1028
heyhey1028 / README.md
Created December 5, 2022 09:05
Flutter analyze for Danger

Flutter analyze for Danger in CI

place the file in danger/plugins

@heyhey1028
heyhey1028 / README.md
Created November 11, 2022 03:27
tips for manipulating streams in dart

tips for manipulating streams in dart

@heyhey1028
heyhey1028 / README.md
Last active November 11, 2022 03:25
Extensions for Flutter Projects

Extensions for Flutter Projects

@heyhey1028
heyhey1028 / !README.md
Last active March 29, 2023 10:29
Continuous delivery of flutter app (Fastlane + Github Actions + Firebase App Distribution) -- flutter build ipa ---

created 2022/10/12

Continuous Delivery of Flutter test app

About

A sample code for distributing test ios app built with flutter via Firebase App Distribution with one tap of github actions. Sample is dedicated for circumstances using below.

  • flutter
  • fastlane
  • github actions
  • Firebase App Distribution
@heyhey1028
heyhey1028 / !README.md
Last active February 25, 2024 05:41
Continuous delivery of flutter app (Fastlane + Github Actions + Firebase App Distribution) -- flutter build ios ---

created 2022/10/12

Continuous Delivery of Flutter test app

About

A sample code for distributing test ios app built with flutter via Firebase App Distribution with one tap of github actions. Sample is dedicated for circumstances using below.

  • flutter
  • fastlane
  • github actions
  • Firebase App Distribution
@heyhey1028
heyhey1028 / auth_providers.dart
Last active October 6, 2022 13:33
Riverpodを使った単体テスト
import 'package:firebase_auth/firebase_auth.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
// FirebaseAuthインスタンスのプロバイダ
final authProvider = Provider((ref) => FirebaseAuth.instance);
// AuthRepositoryのプロバイダ
final authRepositoryProvider =
Provider<AuthRepository>((ref) => AuthRepository(ref.read));