This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'net/http' | |
require 'json' | |
require 'uri' | |
namespace :resas_api do | |
desc "get pref data from resas-api" | |
task get_prefecture: :environment do | |
API_URL = 'https://opendata.resas-portal.go.jp/api/v1/prefectures' | |
json = get_data(API_URL) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class HogeInfo extends StatefulWidget { | |
final String _hogeId; | |
const HogeInfo(this._hogeId); | |
@override | |
_HogeInfoState createState() => _HogeInfoState(); | |
} | |
class _HogeInfoState extends State<HogeInfo> { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class HogeInfo extends StatefulWidget { | |
final String _hogeId; | |
const HogeInfo(this._hogeId); | |
@override | |
_HogeInfoState createState() => _HogeInfoState(); | |
} | |
class _HogeInfoState extends State<HogeInfo> { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
class ListViewWidget extends StatefulWidget { | |
@override | |
_ListViewWidgetState createState() => _ListViewWidgetState(); | |
} | |
class _ListViewWidgetState extends State<ListViewWidget> { | |
Future<List<String>> _data; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
class ListViewWidget extends StatefulWidget { | |
@override | |
_ListViewWidgetState createState() => _ListViewWidgetState(); | |
} | |
class _ListViewWidgetState extends State<ListViewWidget> { | |
Future<List<String>> _data; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:flutter_driver/driver_extension.dart'; | |
void main() { | |
// Enable integration testing with the Flutter Driver extension. | |
// See https://flutter.dev/testing/ for more info. | |
enableFlutterDriverExtension(); | |
runApp(MyApp()); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>CFBundleExecutable</key> | |
<string>dbeaver</string> | |
<key>CFBundleGetInfoString</key> | |
<string>Universal Database Manager and SQL client.</string> | |
<key>CFBundleIconFile</key> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
flutter_intl: | |
enabled: true # 最初から書いてある。これが無いとプラグインが動かない | |
main_locale: ja_JP # デフォルトのロケールをja_JPにする | |
class_name: L10n # 生成されるクラスの名前を「S」から「L10n」にする |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:flutter_hooks/flutter_hooks.dart'; | |
class CustomTextFormField extends HookWidget { | |
CustomTextFormField({Key key}) : super(key: key); | |
@override | |
Widget build(BuildContext context) { | |
final _focusNode = useFocusNode(); | |
final _controller = useTextEditingController(); |
OlderNewer