- 画像を指定する方法が文字列(最低限R.swiftみたいな予測でるようにならないか?)
- 型が決まってるのにInstance生成のために型を書かなきゃいけないの面倒(省略か.から書き始めれないの?)
- => 無理ぽい
- 引数とるコンポーネントの作り方
- =>
- 動的変更があとから必要になった時のことを考えるとStatefulWidgetで全部作ったほうがいい気がするけど、StatelessWidget使うメリットって何?
- 仮にあとでStatelessからStatefulに変える場合の手間はどのくらいだろう
- Iconのcolor指定をsuggestで確定させた際に,が邪魔
This file contains hidden or 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
void main() { | |
Owl owl = Owl(); | |
print(owl.canFly); | |
owl.fly(); | |
print(owl.canRun); | |
owl.run(); | |
Dog dog = Dog(); | |
print(dog.canRun); | |
dog.run(); |
This file contains hidden or 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
void main() { | |
Animal animal1 = Mike(); | |
print(animal1.breed); | |
animal1.bark(); | |
Animal animal2 = Shiba(); | |
print(animal2.breed); | |
animal2.bark(); | |
Animal animal3 = Stranger(); |
This file contains hidden or 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
void main() { | |
// error | |
Animal animal0 = Animal(); | |
Animal animal1 = Mike(); | |
print(animal1.breed); | |
animal1.bark(); | |
Animal animal2 = Shiba(); | |
print(animal2.breed); |
This file contains hidden or 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
void main() { | |
// instance | |
Sample sample = Sample('Hello Dart World!'); | |
sample.speakPublicMessage(); | |
sample.setPrivateMessage('Goodbye Native World.'); | |
sample.speakPrivateMessage(); | |
} |
This file contains hidden or 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 Foundation | |
import APIKit | |
struct HogeRequest: SampleRequest { | |
typealias DTO = ResponseDTO | |
} | |
protocol SampleRequest: Request { | |
associatedtype Response = DTO | |
associatedtype DTO |
This file contains hidden or 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
@@ -0,0 +1,72 @@ | |
# Miscellaneous | |
*.class | |
*.lock | |
*.log | |
*.pyc | |
*.swp | |
.DS_Store | |
.atom/ | |
.buildlog/ |
This file contains hidden or 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
final class ViewController: UIViewController { | |
// MARK: - Private Property | |
private var dependency: Int! | |
// MARK: - Initilizer | |
static func initiate(dependency: Int) -> ViewController { | |
let viewController = UIStoryboard.instantiateInitialViewController(from: self) | |
viewController.dependency = dependency | |
return viewController | |
} |
This file contains hidden or 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 UIKit | |
let youtubeURLs: [String] = [ | |
"https://www.youtube.com/get_video_info?video_id=e0okrDbEsXM", | |
"https://www.youtube.com/get_video_info?video_id=Dwh9hpBWtYQ", | |
"https://www.youtube.com/get_video_info?video_id=aNyNLEoPx4k"//, | |
// "https://www.youtube.com/get_video_info?video_id=mM5_T-F1Yn4", | |
// "https://www.youtube.com/get_video_info?video_id=XYra2ovcWxE" | |
] |
This file contains hidden or 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 UIKit | |
final class CircleLineGraphView: UIView { | |
private enum CircleType { | |
case background | |
case main(percentage: CGFloat) | |
} | |
private enum CircleAlignment { | |
case outside | |
case center |