Easy way to store http response.

Overview

Starlight Http Cached

The easiest way to store data such as http response,String,int,double,bool,map,list.

Features

☑️ Set Cached
☑️ Get Cached
☑️ Delete Cached
☑️ Check Cached

Screen Shots

Installation

Add starlight_http_cached as dependency to your pubspec file.

starlight_http_cached: 
    git:
      url: https://github.com/YeMyoAung/starlight_http_cached.git

Usage

First of all you need to import our package.

import 'package:starlight_http_cached/starlight_http_cached.dart';

Initializing StarlightHttpCached

To initialize StarlightHttpCached, call the instance method on the StarlightHttpCached class:

 await StarlightHttpCached.instance;

Set Cached

import 'package:flutter/material.dart';
import 'package:starlight_http_cached/starlight_http_cached.dart';

Future<void> main() async {
  ///important
  WidgetsFlutterBinding.ensureInitialized();

  ///important
  await StarlightHttpCached.instance;

  ///setcached
  StarlightHttpCached.setCached(
    name: 'helloworld',
    data: {
      "Ye Myo Aung": "Ye Myo Aung",
    },
  );
}

Get Cached

import 'package:flutter/material.dart';
import 'package:starlight_http_cached/starlight_http_cached.dart';

Future<void> main() async {
  ///important
  WidgetsFlutterBinding.ensureInitialized();

  ///important
  await StarlightHttpCached.instance;

  ///get cached
  print(
    StarlightHttpCached.getCached(
      name: 'helloworld',
    ),
  );
}

Delete Cached

import 'package:flutter/material.dart';
import 'package:starlight_http_cached/starlight_http_cached.dart';

Future<void> main() async {
  ///important
  WidgetsFlutterBinding.ensureInitialized();

  ///important
  await StarlightHttpCached.instance;

  ///delete cached
  StarlightHttpCached.deleteCached(
    name: 'helloworld',
  );
}

Check Cached

import 'package:flutter/material.dart';
import 'package:starlight_http_cached/starlight_http_cached.dart';

Future<void> main() async {
  ///important
  WidgetsFlutterBinding.ensureInitialized();

  ///important
  await StarlightHttpCached.instance;

  ///check cached
  print(
    StarlightHttpCached.hasCached(name: 'helloworld'),
  );
}

Contact Us

Starlight Studio

You might also like...

A complete grocery store developed with Flutter, .Net Core, Firebase, One Signal and SQL Server as backend

A complete grocery store developed with  Flutter, .Net Core, Firebase, One Signal and SQL Server as backend

# Grocery-Store developed in Flutter,DotNet Core, Firebase, One-Signal, SQL-Server, Stripe, Razorpay, Paypal A complete grocery store developed with F

Jan 1, 2023

Flutter plugin to store data behind biometric authentication (ie. fingerprint)

biometric_storage Encrypted file store, optionally secured by biometric lock for Android, iOS, MacOS and partial support for Linux, Windows and Web. M

Jan 6, 2023

Shoes Store UI Built With Flutter

Shoes Store UI Built With Flutter

shoes_store shoes store ui - flutter instagram : https://www.instagram.com/deverflu/ screens: menu : Getting Started This project is a starting point

Jul 12, 2022

A flutter app to store personal information about accesses, usernames and passwords

A flutter app to store personal information about accesses, usernames and passwords

pass_reminder My very first Flutter project. An app to store personal information about accesses, usernames and passwords. Personal use only. Images A

Oct 24, 2021

A complete Flutter E-Commerce Book Store application built using firebase as backend

A complete Flutter E-Commerce Book Store application built using firebase as backend

ecommerce A complete Flutter E-Commerce Book Store application built using firebase as backend. Features Add or remove item in cart Search products Ad

Sep 24, 2022

A Book Store App Built Using Flutter

A Book Store App Built Using Flutter

Book Store App Preview video: https://www.youtube.com/watch?v=ZPu-udyRgG0 My Linkedin My Upwork My Twitter My Instagram My Email: sangvaleap.vanny@gma

Dec 24, 2022

Google Play Store one page design with flutter

Google Play Store one page design with flutter

playstore A new Flutter project. Getting Started Google Play Store one page desi

Dec 23, 2021

Recipe bank - Recipe Bank - Flutter frontend web app to store recipes

recipe_bank A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if t

Jan 2, 2022

Dart grocery store / cashier line simulation implementation

Grocery Store Cashier Line Simulation Quick Read Dart implementation of a grocery store cashier line simulation. $ dart bin/grocerysimulator.dart inpu

Jan 13, 2022
Owner
Ye Myo Aung
Programming is my passion.
Ye Myo Aung
Provide easy and flexible way to show SnackBar. Simple text, undo, and error style are supported.

snack_bar_presenter Provide easy and flexible way to show SnackBar. Simple text, undo, and error style are supported. . . . Usage import 'package:exam

Masayuki Ono (mono) 8 Nov 30, 2020
server side dart micro-framework to handle incoming http requests

Queen Palace ???? Introduction server side dart micro-framework to handle incoming http requests

Ahmed Masoud 32 Aug 30, 2022
Concepts used Flutter layout,State management, Blockchain integration, Http api integration, Smart contracts

HS_CryptoCoin_Wallet First project using Flutter with Blockchain Getting Started This project is a starting point for a Flutter application. A few res

Harsh Saxena 1 Dec 23, 2021
Chopper is an http client generator using source_gen and inspired from Retrofit.

Chopper Chopper is an http client generator for Dart and Flutter using source_gen and inspired by Retrofit. Documentation Installation Please refer to

Hadrien Lejard 632 Dec 31, 2022
Dart HTTP server framework for building REST APIs. Includes PostgreSQL ORM and OAuth2 provider.

Aqueduct is a modern Dart HTTP server framework. The framework is composed of libraries for handling and routing HTTP requests, object-relational mapp

Stable Kernel 2.4k Jan 5, 2023
Petit httpd - This is a simple HTTP file server integrated with Let's Encrypt, gzip and CORS

Petit httpd - This is a simple HTTP file server integrated with Let's Encrypt, gzip and CORS

Graciliano Monteiro Passos 4 Nov 24, 2022
Fetchx - Simplified http requests in Dart

Fetchx Fetchx is a simple, fast, and secure HTTP client for Dart. It leverages extensions to allow using url-like strings to make http requests. Read

Brian Omondi 9 Nov 26, 2022
Flutter Car Store App Concept

?? ?? Car Store App Flow ?? ?? ?? ⭐️ ⭐️ ??‍?? Car store app flow based on a design on Dribbble ?? . Complete flutter projects are available on my Code

Olayemii Garuba 38 Dec 12, 2022
This Flutter project recreates an electronics store home screen mockup.

E-Store Mobile App Home Screen This Flutter project recreates an electronics store home screen mockup. The mockup was created by @nasyiya.design on in

Azarro 34 Jul 2, 2022
This is the repository to store the course content and assignments pertaining to Flutter Summer Group hosted by CRUx in 2021 Summer

Flutter Summer Group 2021 This is the official repository for Flutter Summer Group hosted by cruX, and all the course content along with assignments w

Sai Ankit 47 Dec 4, 2022