Better Programming

Advice for programmers.

Follow publication

Member-only story

Build an NFT Collection using Flutter

Bo Hellgren
Better Programming
Published in
14 min readFeb 19, 2022

Image by author

You are a Flutter fan and want to learn the basics of Non-Fungible Tokens and Smart Contracts. In this project, we will build a collection of NFTs and deploy it on the OpenSea marketplace. We will build two Flutter apps: one to generate art, one to control our smart contract. We will use many Web3 tools: IPFS, Pinata, MetaMask, Hardhat, Solidity, OpenZeppelin, Polygonscan, Alchemy.

If you have some cool ideas about NFT images and are just looking for a quick and easy way of creating a collection and selling it, then this post is not for you. Check out LaunchMyNFT.io or a similar site.

These are the steps in this project:

  1. Understand what we will develop.
  2. Generate art: Build a Flutter app to create images and descriptions. Upload them to IPFS — the InterPlanetary File System.
  3. Get a wallet with some cryptocurrency.
  4. Create and deploy a Smart Contract that will live on a blockchain and keep track of your NFTs.
  5. Build a Flutter app to manage your contract and mint NFTs.
  6. List your NFTs on the OpenSea marketplace.
  7. Go from the test environment to production.

1. What we will develop

OpenSea is the most used marketplace for NFTs. Click this link to see The Bling NFT Collection on OpenSea. It was developed as described in this document. First, familiarise yourself with the collection page. Then click on one of the NFTs and examine the NFT page, including Properties and Details.

You will create your own collection like this one, albeit with much simpler images.

2. Generate art

You can sell basically anything as an NFT. But in most cases, an NFT is tied to an image. Again, it can be any kind of image, e.g. a picture of a cute dog downloaded from the internet. But usually, an NFT collection contains images generated by a computer program. The image has a number of properties, called traits, and by varying these, a large number (often thousands) of similar but different images can be generated. Google “generative…

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Responses (2)

Write a response

NFT is a great technology. You can really earn, but you need to know how to store your cryptocurrency. I recommend this post on the subject for those interested: https://nftmonk.com/discover-how-to-create-an-nft-wallet-in-5-easy-steps/

I followed your tutorial and did it. Excellent. Very smooth minting NFT. But the APP made now is to mint NFT for my own wallet. I want to make an APP that can be used by many users, let them fill in their wallet addresses, or log in with their…