A composable, light-weight package that can be used as a placeholder whenever you need some fake data

Overview

API Placeholder

pub package pub package

A composable, light-weight package that can be used as a placeholder whenever you need some fake data. With this package, you can get some famous API Responses like, users, posts, comment, photos, todos, etc. It can be used for prototyping and testing, before using real Real API Endpoints.

Usage

To use this plugin, add api_placeholder as a dependency in your pubspec.yaml

  void getFakeUsers() async {
    String x = await ApiPlaceholder().getUsers()
    // Return a list of users
    print(x);
  }
  
  void getFakePhotos() async {
    String x = await ApiPlaceholder().getPhotos(id: 4);
    // When Id is passed, it returns only one photo with that particular Id
    print(x);
  }
  
  void getFakeTodos() async {
    String x = await ApiPlaceholder().getTodos(limit: 5);
    // When limit is passed, it limits the number od todos.
    print(x);
  }

Additional information

Everyone is welcome to contrbute, or file any issue on this package.

Github Repo: https://github.com/ViAsmit/api_placeholder_package

You might also like...

Fake Firebase Performance for use during Flutter unit & widget tests.

Fake Firebase Performance Fakes to write unit tests for apps using Firebase Performance monitoring. Instantiate a FakeFirebasePerformance, then pass i

Apr 16, 2022

This package provides some widgets you can use to create a smooshy UI.

This package provides some widgets you can use to create a smooshy UI.

Dough Library Squishy widgets for Flutter. Quick Links Dough Demos Here are a few samples of the different widgets provided by this repo. You can find

Jan 8, 2023

The one and only Docker Tool you will ever need again

# container_tool A new Flutter project. ## Getting Started This project is a starting point for a Flutter application. A few resources to get you

Nov 17, 2021

All the tools you need to build an app in 2 minutes

All the tools you need to build an app in 2 minutes. This is the main, standard CC Core. The plan is to make this into smaller, independent modules, but for now we are making it all available.

Dec 30, 2021

The app you need for Genshin Impact

The app you need for Genshin Impact

Shiori A Genshin Impact database kinda app This app is not affiliated with or endorsed by miHoYo. Shiori is just a database app for the Genshin Impact

Dec 17, 2022

Do you need logs? Lumberdash is the answer!

lumberdash Do you need logs? Lumberdash is the answer! With a simple but powerful logging API, Lumberdash is the easiest way to record logs. And if th

Dec 12, 2022

Serialize almost everything you ever need! πŸ“¦ Supports serializing MaterialColor, Color, Size, Locale, IconData, UuidValue, DateTime, Directory, File, Duration, and many more.

Serialize almost everything you ever need! πŸ“¦ Supports serializing MaterialColor, Color, Size, Locale, IconData, UuidValue, DateTime, Directory, File, Duration, and many more.

osum_serializable The goal is to serialize almost everything you ever need! json_serializable is an amazing package to serialize classes but cannot se

Sep 23, 2022

This is a radio app where you can ask Alan AI to play some music.

This is a radio app where you can ask Alan AI to play some music.

AI-Powered Voice Assistant Flutter Radio App This is a radio app where you can ask Alan AI to play some music. Alan AI: https://voice.alan.app/MTechVi

Jan 3, 2023

Data Migrator - provide a universal translator for data by being portable, diverse, and efficient in migrating and converting data across discrete schemas

Data Migrator - provide a universal translator for data by being portable, diverse, and efficient in migrating and converting data across discrete schemas

Data Migrator - provide a universal translator for data by being portable, diverse, and efficient in migrating and converting data across discrete schemas

Jan 2, 2023
Owner
ASMIT VIMAL
ASMIT VIMAL
Lucifer is a fast, light-weight web framework in dart.

Lucifer Lightbringer Lucifer is a fast, light-weight web framework in dart. It's built on top of native HttpServer to provide a simple way to fulfill

Salman S 22 Jan 2, 2023
πŸ‘‰ A light-weight Emoji πŸ“¦ for Flutter and Dart-based applications with all up-to-date emojis πŸ˜„. Made from πŸ’―% β˜• with ❀️!

flutter_emoji ?? A light-weight Emoji ?? for Flutter and Dart-based applications with all up-to-date emojis ?? . Made from ?? % β˜• with ❀️ ! Inspired f

Pete Houston 67 Nov 4, 2022
Create fake phone contacts, to do data-poisoning.

Fake Contacts Android phone app that creates fake contacts, which will be stored on your smartphone along with your real contacts. This feeds fake dat

Bill Dietrich 531 Dec 23, 2022
A composable API for making HTTP requests in Dart.

A composable, Future-based library for making HTTP requests. This package contains a set of high-level functions and classes that make it easy to cons

Dart 888 Dec 26, 2022
A package that gives us a modern way to show animated border as a placeholder while loading our widget with easy customization and ready to use.

A package that gives us a modern way to show animated border as a placeholder while loading our widget with easy customization and ready to use.

Mohit Chauhan 8 Oct 3, 2022
Be together, whenever. A simple way to text chat and plan things all in one place for flutter developers.

Flutterdevconnect Be together, whenever. A simple way to text chat and plan things all in one place for flutter developers. Android IOS Web PWA Androi

Sanskar Tiwari 69 Aug 27, 2022
A flutter app that gives you affirmation you daily need by saying "I am Freaking rich!"

A very basic flutter app that gives you affirmation you daily need by saying "I am Freaking rich!" ?? What’s In This Document Get Up and Running in 5

Bhavuk kalra 1 Feb 15, 2022
A flutter package that provides all icons you need

Before starting βœ‹ . I want to tell you that every star ?? added to my space shines my world and motivate me ?? to make more awesome things like this o

Andrew Nasef 47 Dec 29, 2022
Charlatan - A library for configuring and providing fake http responses to your dio HTTP client.

charlatan This package provides the ability to configure and return fake HTTP responses from your Dio HTTP Client. This makes it easy to test the beha

Betterment 14 Nov 28, 2022