All Projects → ThinkSimple → flutter_simple_shopify

ThinkSimple / flutter_simple_shopify

Licence: MIT license
No description or website provided.

Programming Languages

dart
5743 projects

Projects that are alternatives of or similar to flutter simple shopify

go-shopify
DEPRECATION NOTICE: Continuing support for the go-shopify library will be at Bold Commerce's fork. Please open issues and pull requests over there.
Stars: ✭ 49 (-40.96%)
Mutual labels:  shopify
GrowGreen
Grow Green Web App allows users worldwide to create awareness about the environment and do their bit by contributing.
Stars: ✭ 51 (-38.55%)
Mutual labels:  hacktoberfest2020
awesome-ufma
Uma lista de provas das disciplinas ministradas na Universidade Federal do Maranhão.
Stars: ✭ 63 (-24.1%)
Mutual labels:  hacktoberfest2020
servable
"simple" observable implementation based off RxJS & kefir Docs
Stars: ✭ 14 (-83.13%)
Mutual labels:  hacktoberfest2020
cpalgorithms
Algorithms and Techniques for competitive programming
Stars: ✭ 16 (-80.72%)
Mutual labels:  hacktoberfest2020
getfem
Mirror of GetFEM repository
Stars: ✭ 23 (-72.29%)
Mutual labels:  hacktoberfest2020
api
✏️ Free open source Application Programming Interface API for OhMyForm ⛺
Stars: ✭ 50 (-39.76%)
Mutual labels:  hacktoberfest2020
interledger-payment-app-example
An implementation of the Interledger spec through an Android's Payment App
Stars: ✭ 26 (-68.67%)
Mutual labels:  shopify
kossiitkgp.github.io
Website of KOSS
Stars: ✭ 29 (-65.06%)
Mutual labels:  hacktoberfest2020
potigol.github.io
Site da Linguagem Potigol
Stars: ✭ 68 (-18.07%)
Mutual labels:  hacktoberfest2020
fullscreen-card
Make your Home Assistant browser fullscreen with one tap.
Stars: ✭ 23 (-72.29%)
Mutual labels:  hacktoberfest2020
shopify-slater-tailwindcss
Shopify Starter Theme + TailwindCSS with PurgeCSS
Stars: ✭ 40 (-51.81%)
Mutual labels:  shopify
FinalYear-Project-Ideas
Instead of just adding your name and email, why not create a list of project ideas?
Stars: ✭ 429 (+416.87%)
Mutual labels:  hacktoberfest2020
DevHelpBox
we are creating this community so that other developers can get benefits of it.
Stars: ✭ 35 (-57.83%)
Mutual labels:  hacktoberfest2020
kubetools
Kubetools - Curated List of Kubernetes Tools
Stars: ✭ 674 (+712.05%)
Mutual labels:  hacktoberfest2020
webdrivermanager
Python module to facilitate downloading and deploying WebDriver binaries for Chrome, Firefox, Opera & Edge
Stars: ✭ 94 (+13.25%)
Mutual labels:  hacktoberfest2020
Data-Structures-and-Algorithms
This repository contains data structure programs and solutions [ in C++] of a problem using different techniques like Dynamic Programming , Greedy Algorithms , Divide and Conquer , Backtracking etc.
Stars: ✭ 31 (-62.65%)
Mutual labels:  hacktoberfest2020
Sketch2Color-anime-translation
Given a simple anime line-art sketch the model outputs a decent colored anime image using Conditional-Generative Adversarial Networks (C-GANs) concept.
Stars: ✭ 90 (+8.43%)
Mutual labels:  hacktoberfest2020
flutter-simple-url-preview
Simple url preview package for flutter
Stars: ✭ 30 (-63.86%)
Mutual labels:  hacktoberfest2020
camunda-external-task-client-python3
Camunda External Task Client in Python
Stars: ✭ 43 (-48.19%)
Mutual labels:  hacktoberfest2020

flutter_simple_shopify

pub package Build

A new Flutter package which provides help in creating a mobile app of a shopify store. Note: This library as of right now is not ready for production however we finished creating our own app and used the library. There are still minor bugs here and there but we advise everyone to start using the library and post as many issues as possible. If there are questions about the usage feel free to hit us up on our mail address.

How To Use

I Assume you have already a private app on your Shopify store. if not please follow this. At step 6 we recommend checking every API permission as some queries and mutations require permission on objects like product tags.

First of all configure the ShopifyConfig like that:

void main() {
  
  ShopifyConfig.setConfig(
      'de16cae1ce0b86260703fccaa6b689a3', // Storefront API access token.
      'exampleShopname.myshopify.com', // Store url.
      '2020-04'); // The Shopify Storefront API version.
  
  runApp(MyApp());
}

These are the five possible instances, each contains different methods which will help you with working with the Shopify Storefront API. The goal is to make creating an mobile app from your Shopify website easier.

  ShopifyAuth shopifyAuth = ShopifyAuth.instance;
    Future<ShopifyUser> createUserWithEmailAndPassword({@required String email, @required String password})
    Future<void> signOutCurrentUser()
    Future<void> sendPasswordResetEmail({@required String email})
    Future<ShopifyUser> signInWithEmailAndPassword({@required String email, @required String password})
    Future<ShopifyUser> currentUser()
  ShopifyStore shopifyStore = ShopifyStore.instance;
     Future<List<Product>> getProductsByIds()
     Future<List<Product>> getXProductsAfterCursor(int limit,String startCursor)
     Future<List<Product>> getAllProducts()
     Future<List<Product>> getNProducts({@required int n, @required SortKey sortKey})
     Future<Shop> getShop()
     Future<Collection> getFeaturedCollection()
     Future<List<Collection>> getAllCollections()
     Future<List<Product>> getXProductsAfterCursorWithinCollection(String id, int limit, String startCursor, SortKeyProduct sortKey)
     Future<List<Product>> getAllProductsFromCollectionById(String id)
     Future<List<Product>> getAllProductsOnQuery(String cursor, SortKeyProduct sortKey, String query)
     Future<List<Product>> getXProductsOnQueryAfterCursor(String cursor, int limit, SortKeyProduct sortKey, String query)
     Future<List<Metafield>> getMetafieldsFromProduct(String productHandle, {String namespace})
  ShopifyCheckout shopifyCheckout = ShopifyCheckout.instance;
    Future<Checkout> getCheckoutInfoQuery({String checkoutId})
    Future<Checkout> getCheckoutInfoWithAvailableShippingRatesQuery({String checkoutId})
    Future<List<Order>> getAllOrders({String customerAccessToken})
    Future<void> checkoutLineItemsReplace({String checkoutId, List<Map<String,dynamic>> checkoutLineItems})
    Future<void> checkoutCustomerAssociate({String checkoutId, String customerAccessToken}) 
    Future<void> checkoutCustomerDisassociate({String checkoutId})
    Future<void> checkoutDiscountCodeApply({String checkoutId, String discountCode})
    Future<void> checkoutDiscountCodeRemove({String checkoutId})
    Future<String> createCheckout()
    Future<void> checkoutGiftCardAppend(String checkoutId, List<String> giftCardCodes)
    Future<void> checkoutGiftCardRemove(String appliedGiftCardId, String checkoutId)
    Future<void> shippingLineUpdate(String checkoutId, String shippingRateHandle)
    Future<void> checkoutCompleteFree(String checkoutId)
    Future<void> updateAttributes(String checkoutId, {bool allowPartialAddresses, Map<String, String> customAttributes, String note})
  ShopifyCustomer shopifyCustomer = ShopifyCustomer.instance;
     Future<void> customerAddressUpdate({String address1, String address2, String company, String city, String country, String firstName, String lastName, String phone, String province, String zip, String customerAccessToken, id})
     Future<void> customerUpdate({String email, String firstName, String lastName, String password, String phoneNumber, String customerAccessToken, bool acceptsMarketing})
     Future<void> customerAddressCreate({String address1, String address2, String company, String city, String country, String firstName, String lastName, String phone, String province, String zip, String customerAccessToken})
     Future<void> customerAddressDelete({String customerAccessToken, String addressId})
       
  ShopifyBlog shopifyBlog = ShopifyBlog.instance;
     Future<List<Blog>> getAllBlogs()
     Future<Blog> getBlogByHandle(String handle, SortKeyArticle sortKeyArticle)
     Future<List<Article>> getXArticlesSorted({int articleAmount, SortKeyArticle sortKeyArticle})

Above you see the instance on top and the possible methods and functions which you can use.

Getting Started

This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Contribution

Everybody can contribute and is invited to do so! Important: if you add a new field to a model please consider also adding this to every mutation/query that is associated with the model. eg. adding a new field to Checkout which is the webUrl, now you will need to go through the various queries/mutations and search for "Checkout" and add webUrl to each one of those. (adding a new field to a Model also requires you to update the fromJson)

Also I would like to thank everyone who contributed so far!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].