An open API service indexing awesome lists of open source software.

https://github.com/nicosnicolaou16/samplefluttertvapp

This is a sample project that supports the Android TV OS app. It uses the BLoC architecture pattern, along with Dio for network management and Drift for database handling.
https://github.com/nicosnicolaou16/samplefluttertvapp

android-tv bloc-pattern dio-network-manager drift-database flutter-tv

Last synced: about 2 months ago
JSON representation

This is a sample project that supports the Android TV OS app. It uses the BLoC architecture pattern, along with Dio for network management and Drift for database handling.

Awesome Lists containing this project

README

        

# Sample Flutter TV App

This is a sample project that supports the Android TV OS app. It uses the BLoC architecture pattern,
along with Dio for network management and Drift for database handling.

> [!IMPORTANT]
> NOTE: EXAMPLE FOR ANDROID ONLY.

# The Project Contain the following technologies and libraries

[Android TV OS](https://developer.android.com/tv) is a version of Android designed for smart TVs,
providing an optimized interface for streaming and apps.

[Bloc Patterns using single state](https://pub.dev/packages/flutter_bloc) along with repositories
and services, separates business logic, data access, and UI by using streams to handle state and
manage data flow. ([Bloc Pattern Documentation](https://bloclibrary.dev/getting-started/))

[Dio Network Manager](https://pub.dev/packages/dio) is responsible for making requests and
retrieving data from the remote server.

Drift Database (SQL)

[Drift Database](https://drift.simonbinder.eu/docs/getting-started/) is responsible for saving the
retrieved data from the remote server, querying data from the local database, and supporting offline
functionality. ([Drift Database Documentation](https://pub.dev/packages/drift))

[Cached Network Image](https://pub.dev/packages/cached_network_image) is a package that it is
responsible for loading the images and supports offline functionality.

# Setup

## Setup in Manifest

```xml











```

> [!IMPORTANT]
> Check my article for the setup :point_right: [Android TV Application (Setup for Jetpack Compose and Flutter) - Medium](https://medium.com/@nicosnicolaou/android-tv-application-jetpack-compose-and-flutter-f4decfa765c6) :point_left:

> [!IMPORTANT]
> Similar project with (Kotlin Language) :point_right: [SampleAndroidTvApp](https://github.com/NicosNicolaou16/SampleAndroidTvApp) :point_left:

## Versioning

Flutter SDK version: 3.27.1

Dart Version: 3.6.0

# Feeds/Urls/End Point (parsing some data from response)

## (Links References for Ends Points)

https://github.com/r-spacex/SpaceX-API (GitHub)

https://docs.spacexdata.com/?version=latest (Postman)

# References

https://mobikul.com/tv-app-using-flutter/

https://stackoverflow.com/questions/69607355/how-to-create-stack-vertical-listview-and-horizontal-listview-in-flutter-draggab