Code Monkey home page Code Monkey logo

petstagram_provider_pattern's People

Contributors

chiwanahn avatar

petstagram_provider_pattern's Issues

Question 동작 방식과 관련해서 질문드립니다.

질문내용을 입력해 주세요

  1. 똑같은 클래스명을 가진 home_screen과 homeScreen이 두가지 있는 이유가 궁금합니다.
  2. MVVM을 보고 있는데 생소해서 코드의 작동방식을 이해하기가 조금 어렵습니다.
    제가 코드를 이해했을 때 noti -> repo -> api_service -> repo -> noti로 이런 식으로 동작하는게 맞을까요??
  3. api에 퓨처 딜레이를 넣으신 이유가 궁금합니다.
  4. 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: '코바늘',
        ),
      ),
    );
  }
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.