{
    "componentChunkName": "component---node-modules-rocketseat-gatsby-theme-docs-core-src-templates-docs-query-js",
    "path": "/docs/flutter/get-started/",
    "result": {"data":{"mdx":{"id":"faaebd3b-fcdb-5e71-a9b1-e793b4afd911","excerpt":"Implement our Flutter plugin and easily add subscriptions to your Flutter app. Add the Plugin to your app Add  linkfive_purchases plugin  to your Flutter…","fields":{"slug":"/docs/flutter/get-started/"},"frontmatter":{"title":"Get Started with Flutter","description":"Everything you need to know to get started with our Flutter plugin","image":null,"disableTableOfContents":null},"body":"var _excluded = [\"components\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n/* @jsxRuntime classic */\n/* @jsx mdx */\n\nvar _frontmatter = {\n  \"title\": \"Get Started with Flutter\",\n  \"description\": \"Everything you need to know to get started with our Flutter plugin\"\n};\nvar layoutProps = {\n  _frontmatter: _frontmatter\n};\nvar MDXLayout = \"wrapper\";\nreturn function MDXContent(_ref) {\n  var components = _ref.components,\n    props = _objectWithoutProperties(_ref, _excluded);\n  return mdx(MDXLayout, _extends({}, layoutProps, props, {\n    components: components,\n    mdxType: \"MDXLayout\"\n  }), mdx(\"blockquote\", null, mdx(\"p\", {\n    parentName: \"blockquote\"\n  }, \"Implement our Flutter plugin and easily add subscriptions to your Flutter app.\")), mdx(\"h2\", {\n    \"id\": \"add-the-plugin-to-your-app\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h2\",\n    \"href\": \"#add-the-plugin-to-your-app\",\n    \"aria-label\": \"add the plugin to your app permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"Add the Plugin to your app\"), mdx(\"p\", null, \"Add \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://pub.dev/packages/linkfive_purchases\"\n  }, \"linkfive_purchases plugin\"), \" to your Flutter project:\"), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\"\n  }, \"$ flutter pub add linkfive_purchases\\n\")), mdx(\"p\", null, \"Or open \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"pubspec.yaml\"), \" and add the dependency to your app:\"), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\"\n  }, \"dependencies:\\n  linkfive_purchases: ^3.0.0\\n\")), mdx(\"p\", null, \"Please also checkout our official pub.dev plugin and it's documentation: \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://pub.dev/packages/linkfive_purchases\"\n  }, \"https://pub.dev/packages/linkfive_purchases\")), mdx(\"h2\", {\n    \"id\": \"implementation-guide\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h2\",\n    \"href\": \"#implementation-guide\",\n    \"aria-label\": \"implementation guide permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"Implementation Guide\"), mdx(\"p\", null, \"We have created separate documentation for each step of your Flutter implementation.\"), mdx(\"ol\", null, mdx(\"li\", {\n    parentName: \"ol\"\n  }, \"\\xA0\", \"1. \", mdx(\"a\", {\n    parentName: \"li\",\n    \"href\": \"/docs/flutter/initializing/\"\n  }, \"Initialize Flutter\")), mdx(\"li\", {\n    parentName: \"ol\"\n  }, \"\\xA0\", \"2. \", mdx(\"a\", {\n    parentName: \"li\",\n    \"href\": \"/docs/flutter/get-all-active-subscriptions/\"\n  }, \"Get All Active Subscriptions\")), mdx(\"li\", {\n    parentName: \"ol\"\n  }, \"\\xA0\", \"3. \", mdx(\"a\", {\n    parentName: \"li\",\n    \"href\": \"/docs/flutter/show-subscription-offer/\"\n  }, \"Show your Subscription Offer\")), mdx(\"li\", {\n    parentName: \"ol\"\n  }, \"\\xA0\", \"4. \", mdx(\"a\", {\n    parentName: \"li\",\n    \"href\": \"/docs/flutter/make-a-purchase/\"\n  }, \"Make a Purchase\"))), mdx(\"h3\", {\n    \"id\": \"quick-overview\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h3\",\n    \"href\": \"#quick-overview\",\n    \"aria-label\": \"quick overview permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"Quick overview\"), mdx(\"p\", null, \"Initialize the plugin and listen for updates\"), mdx(\"p\", null, \"You can \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://app.linkfive.io/sign-up?from=docs-flutter-apikey\"\n  }, \"sign up here\"), \" and get your api key.\"), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-dart\"\n  }, \"// Get your API key after sign up\\nawait LinkFivePurchases.init(\\\"LinkFive Api Key\\\");\\n\")), mdx(\"p\", null, \"Fetch your subscription offering / Fetch your products\"), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-dart\"\n  }, \"LinkFivePurchases.fetchProducts();\\n\\n// or also\\n\\nLinkFiveProducts? products = await LinkFivePurchases.fetchProducts();\\n\")), mdx(\"p\", null, \"Listen to your subscription updates:\"), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-dart\"\n  }, \"// Subscriptions to offer to the user\\nLinkFivePurchases.products;\\n\\n// Active subscriptions the user purchased\\nLinkFivePurchases.activeProducts;\\n\")), mdx(\"p\", null, \"Make a purchase:\"), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-dart\"\n  }, \"// This handles the entire purchase process\\nLinkFivePurchases.purchase(productDetails);\\n\")), mdx(\"p\", null, \"That's it. We recommend to use the \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://pub.dev/packages/provider\"\n  }, \"Provider plugin\"), \" or any other state management systems for Flutter.\"), mdx(\"blockquote\", null, mdx(\"p\", {\n    parentName: \"blockquote\"\n  }, \"Next: \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"/docs/flutter/initializing\"\n  }, \"Initialize the Flutter Plugin\"))));\n}\n;\nMDXContent.isMDXComponent = true;","headings":[{"depth":2,"value":"Add the Plugin to your app"},{"depth":2,"value":"Implementation Guide"},{"depth":3,"value":"Quick overview"}]}},"pageContext":{"slug":"/docs/flutter/get-started/","next":{"label":"Introduction","link":"/docs/docs/"},"repositoryEditUrl":"","repositoryProvider":""}},
    "staticQueryHashes": ["1954253342","2328931024","2501019404","973074209"]}