Developing Flutter Integration with Near Protocol
This document explains how I built a dart package for Near Protocol integration for flutter developers. It gives a description about the research I conducted, the resources I used and those that did not help me to do the integration.
This dart package helps flutter developers to interact with near protocol with the functions exposed when they install the package on their flutter project. Near is a layer one blockchain protocol that is highly scalable, inexpensive, and relatively faster in execution. Developers can build dApps (decentralized applications) using this protocol.
Flutter is an open source framework for building multi-platform applications from a single codebase. So if any flutter developer wants to build a dApp using Near protocol, this package will serve as a prepared set of functions to easily interact with the protocol. The developer does not have to do it from the ground up to do the integration.
Since Flutter is a cross-platform framework, it sometimes needs the development of plugins (packages which include platform specific codes). When developing the package, I primarily used dart programming language since there is no need to specifically code platform specific functions.
When starting the project I went through the following youtube videos and slides to help me understand more about the protocol. Introductory slides about the Near Blockchain http://bit.ly/ncd-1-1d-slides A beginner tutorial video for web developers to build dApp using Near https://www.youtube.com/watch?v=m6LJUpPPHoE&t=2905s
This does not help to directly delve into development but it kind of gives a good fundamental understanding on how to develop a dApp (web based) with Near blockchain.
The project includes the integration with Near protocol in the following features Authentication to Near account Integration to View functions Sending tokens Integration to Change functions Transferring Nfts Note: The project does not integrate parsing contract functions.
Challenges and Solutions