petstagram_provider_pattern's People
petstagram_provider_pattern's Issues
Question 동작 방식과 관련해서 질문드립니다.
질문내용을 입력해 주세요
- 똑같은 클래스명을 가진 home_screen과 homeScreen이 두가지 있는 이유가 궁금합니다.
- MVVM을 보고 있는데 생소해서 코드의 작동방식을 이해하기가 조금 어렵습니다.
제가 코드를 이해했을 때 noti -> repo -> api_service -> repo -> noti로 이런 식으로 동작하는게 맞을까요?? - api에 퓨처 딜레이를 넣으신 이유가 궁금합니다.
- export해놓으면 특별히 따로 import를 안해줘도 되는건가요??
참고할 코드를 입력해 주세요
class PostApiService implements BasePostApiService {
Future<List<Post>> listPost() async {
await Future.delayed(Duration(milliseconds: 500));
return await Future.value(
List.generate(
1,
(index) => Post(
id: 'p-$index',
author: User(
id: 'u-$index',
username: 'bibber_',
),
imageUrls: [
'https://images.unsplash.com/photo-1594399981502-94a5079e2142?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max'
],
description: '코바늘',
),
),
);
}
}
Question 질문을 어떻게 올려볼까요?
질문내용을 입력해 주세요
참고할 코드를 입력해 주세요
example code here
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.