GithubHelp home page GithubHelp logo

Comments (4)

selankon avatar selankon commented on July 19, 2024 1

I guess the repository is not complete

I just guess it because I didn't found all the folders you describe on the README.md for media feature.

Thanks for explain it (and for the repository, it was really useful)

💯

from movies_app.

selankon avatar selankon commented on July 19, 2024

I guess the repository is not complete. Is just a POC, because some features have missing folders

from movies_app.

Roaa94 avatar Roaa94 commented on July 19, 2024

what is the purpose of this one?

import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:movies_app/features/people/models/person.dart';

final currentPopularPersonProvider = Provider<AsyncValue<Person>>((ref) {
  throw UnimplementedError();
});

The currentPopularPersonProvider is the provider used inside the PopularPersonListItem widget and is the provider that gets populated with every list item data.

It is initialized as UnimplementedError at first so that its value stays non-nullable and because we are sure that we will not access this provider before we override it in the parent PopularPeopleList widget

return ProviderScope(
    overrides: [
        currentPopularPersonProvider
            .overrideWithValue(currentPopularPersonFromIndex)
    ],
    child: const PopularPersonListItem(),
);

And this way it's protected from being accessed without it being assigned a value (overridden) because it will throw an error.

Feel free to read about the implementation of infinite scroll in detail in the README

from movies_app.

Roaa94 avatar Roaa94 commented on July 19, 2024

I guess the repository is not complete. Is just a POC, because some features have missing folders

All the features that exist in the repo are complete but there is space for extra features to be added by me or contributors.
Please let me know if there is anything missing from an existing feature.

from movies_app.

Related Issues (5)

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.