Skip to content

Instantly share code, notes, and snippets.

View 3t14's full-sized avatar

Michiru Tanaka 3t14

View GitHub Profile
@3t14
3t14 / prac1.kt
Created September 11, 2022 01:13
コメント、変数宣言
// 1行のコメント
//
/*
複数行のコメント
*/
val a: Int = 1 // 値の即時割当て
val b = 2 // Int型への推論
@3t14
3t14 / item.dart
Last active September 9, 2022 03:35
SQLiteによる簡易メモアプリ完成形
// メモデータに関するモデル処理
// 1件分のメモデータ
import 'package:flutter/foundation.dart';
import 'package:path/path.dart';
import 'package:sqflite/sqflite.dart';
class Item {
final int id; // ユニークな識別子
final String title; // メモのタイトル
@3t14
3t14 / item.dart
Last active September 9, 2022 03:32
削除機能の実装
// メモデータに関するモデル処理
// 1件分のメモデータ
class Item {
final int id; // ユニークな識別子
final String title; // メモのタイトル
final String memo; // メモの内容
// コンストラクタ
const Item({
@3t14
3t14 / item.dart
Last active September 9, 2022 00:26
更新機能の実装
// メモデータに関するモデル処理
// 1件分のメモデータ
class Item {
final int id; // ユニークな識別子
final String title; // メモのタイトル
final String memo; // メモの内容
// コンストラクタ
const Item({
@3t14
3t14 / item.dart
Last active September 8, 2022 21:37
新規追加機能の実装
// メモデータに関するモデル処理
// 1件分のメモデータ
class Item {
final int id; // ユニークな識別子
final String title; // メモのタイトル
final String memo; // メモの内容
// コンストラクタ
const Item({
@3t14
3t14 / item.dart
Created September 8, 2022 21:33
端末の画面サイズに応じたMaster Detail型の基本レイアウト構築
// メモデータに関するモデル処理
// 1件分のメモデータ
class Item {
final int id; // ユニークな識別子
final String title; // メモのタイトル
final String memo; // メモの内容
// コンストラクタ
const Item({
@3t14
3t14 / item.dart
Last active September 8, 2022 21:31
SQLiteによる簡易メモアプリ完成形
// メモデータに関するモデル処理
// 1件分のメモデータ
import 'package:flutter/foundation.dart';
import 'package:path/path.dart';
import 'package:sqflite/sqflite.dart';
class Item {
final int id; // ユニークな識別子
final String title; // メモのタイトル
@3t14
3t14 / item.dart
Last active August 24, 2022 23:31
// メモデータに関するモデル処理
// 1件分のメモデータ
import 'package:flutter/foundation.dart';
import 'package:path/path.dart';
import 'package:sqflite/sqflite.dart';
class Item {
final int id; // ユニークな識別子
final String title; // メモのタイトル
@3t14
3t14 / item.dart
Last active September 8, 2022 20:58
削除機能追加後
// メモデータに関するモデル処理
// 1件分のメモデータ
class Item {
final int id; // ユニークな識別子
final String title; // メモのタイトル
final String memo; // メモの内容
// コンストラクタ
const Item({
@3t14
3t14 / item.dart
Last active September 8, 2022 20:42
編集機能追加後
// メモデータに関するモデル処理
// 1件分のメモデータ
class Item {
final int id; // ユニークな識別子
final String title; // メモのタイトル
final String memo; // メモの内容
// コンストラクタ
const Item({