본문 바로가기

전체 글

Flutter - FutureBuilder Flutter - FutureBuilder main.dart import 'package:flutter/material.dart'; import 'src/app.dart'; void main() => runApp(App()); src/app.dart import 'package:flutter/material.dart'; import 'screens/news_list.dart'; class App extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( title: 'HackerNews', home: NewsList(), ); } } src/screens/news_list.dart import 'p.. 더보기
Flutter Animation Flutter Animation animation library AnimationController class status property AnimationStatus TickerProvider class Positioned class Overflow enum Transform class #constructors Transform.rotate constructor Alignment class main.dart import 'package:flutter/material.dart'; import 'package:flutter/rendering.dart'; import 'src/app.dart'; void main() { // debugPaintSizeEnabled = true; runApp(App()); }.. 더보기
Flutter BLoC, RxDart combineLatestStream BehaviorSubject On Submit Flutter BLoC, RxDart combineLatestStream BehaviorSubject pubspec.yaml dependencies: flutter: sdk: flutter # The following adds the Cupertino Icons font to your application. # Use with the CupertinoIcons class for iOS style icons. cupertino_icons: ^0.1.3 rxdart: ^0.24.1 #rxdar: ^0.16.7 main.dart import 'package:flutter/material.dart'; import 'src/app.dart'; void main() => runApp(A.. 더보기
Flutter BLoC, RxDart combineLatestStream Flutter BLoC, RxDart SubmitedcombineLatestStream reactivex.io github.com/ReactiveX/rxdart pub.dev/packages/rxdart rxdart package documentatio rxmarbles.com/#combineLatest CombineLatestStream-class. ReactiveX 라이브러리 제품군 제외. 스트림 작업을위한 도우미 "객체 / 함수"있음 각 버전은 유사하며 때로는 약간의 차이가 있습니다. ReactiveX는 언어간에 유사해야하기 때문에 Dart가 사용하는 용어와 다른 용어를 사용합니다. pubspec.yaml # ... dependencies: flutter: sdk: flutter # The foll.. 더보기
Flutter BLoC, Scoped Instances Flutter BLoC, inheritedWidget Provider main.dart import 'package:flutter/material.dart'; import 'src/app.dart'; void main() => runApp(App());src/app.dart import 'package:flutter/material.dart'; import 'screens/login_screen.dart'; import 'blocs/provider.dart'; class App extends StatelessWidget { @override Widget build(BuildContext context) { return Provider.. 더보기
DDH 마지막 프로젝트 내 생각 보호되어 있는 글입니다. 더보기
Flutter BLoC, Single Global Instance Flutter BLoC, Provider mmain.dart import 'package:flutter/material.dart'; import 'src/app.dart'; void main() => runApp(App());src/app.dart import 'package:flutter/material.dart'; import 'screens/login_screen.dart'; import 'blocs/provider.dart'; class App extends StatelessWidget { @override Widget build(BuildContext context) { return Provider( child: Materi.. 더보기
Flutter BLoC main.dart import 'package:flutter/material.dart'; import 'src/app.dart'; void main() => runApp(App());src/app.dart import 'package:flutter/material.dart'; import 'screens/login_screen.dart'; class App extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( title: 'Login', home: Scaffold( appBar: AppBar( title: Text('.. 더보기