parth-asodariya / medusa_flutter

A package for the REST APIs of Medusa.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flutter Medusa Package

medusa flutter package

About

Participants

Name GitHub Discord Twitter
Karan Joshi karanjoshi karanj#4900 KaranJoshiDev
Keval Makadiya keval-makadiya kevalm#1071 kevalmakadiya
Pankti Shah Pankti910 pankti#2606 ShahPankti2
Parth Asodariya parth-asodariya ParthA#1988 p_asodariya
Snehal Singh Snehal-Singh174 Snehal#5419 SnehalS_

Description

An open source ecommerce mobile application package built using Medusa and Flutter. It includes all APIs which are in store-front.

Set up Project

Prerequisites

Before you start with the tutorial make sure you have

Installation

Add Dependency of the package in your pubspec.yaml file:

medusa_flutter:
  path: 'PACKAGE_PATH'

USAGE

Import Medusa as a default import and initiate it:

import 'package:medusa_flutter/medusa_flutter.dart';

var medusa = Medusa(Config(baseUrl: "MEDUSA_SERVER_URL"));

StoreProductsListRes? productsListRes = await medusa.products.list();

Configuration

Initialize with config object

var medusa = Medusa(
    Config(
        baseUrl: "MEDUSA_SERVER_URL"
    ),
  );

Example Demo

medusa flutter package

Resources

About

A package for the REST APIs of Medusa.

License:Other


Languages

Language:Dart 99.8%Language:Swift 0.2%Language:Kotlin 0.1%Language:Objective-C 0.0%