{"id":13820343,"url":"https://github.com/aniketambore/Flutter-Blockchain","last_synced_at":"2025-05-16T10:30:50.028Z","repository":{"id":39747155,"uuid":"337424531","full_name":"aniketambore/Flutter-Blockchain","owner":"aniketambore","description":"Flutter and Blockchain DAPPS","archived":true,"fork":false,"pushed_at":"2023-10-28T04:40:36.000Z","size":9033,"stargazers_count":148,"open_issues_count":2,"forks_count":57,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-08-05T08:08:57.717Z","etag":null,"topics":["blockchain","dapp","ethereum","flutter","solidity","web3dart"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aniketambore.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-02-09T14:07:31.000Z","updated_at":"2024-07-23T08:56:25.000Z","dependencies_parsed_at":"2022-08-09T15:25:29.124Z","dependency_job_id":"da2f03b9-19a4-4749-902e-58cf92af3b36","html_url":"https://github.com/aniketambore/Flutter-Blockchain","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aniketambore%2FFlutter-Blockchain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aniketambore%2FFlutter-Blockchain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aniketambore%2FFlutter-Blockchain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aniketambore%2FFlutter-Blockchain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aniketambore","download_url":"https://codeload.github.com/aniketambore/Flutter-Blockchain/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225423593,"owners_count":17472145,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blockchain","dapp","ethereum","flutter","solidity","web3dart"],"created_at":"2024-08-04T08:01:01.764Z","updated_at":"2024-11-19T20:30:27.230Z","avatar_url":"https://github.com/aniketambore.png","language":"Dart","funding_links":[],"categories":["Flutter"],"sub_categories":["Flutter SDK / Libraries"],"readme":"\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"https://i.ibb.co/9ZhjNCj/icons8-module-96.png?raw=true\" width=\"100px\" alt=\"Blockchain Logo\"/\u003e\n\u003c/div\u003e\n\n\u003ch3 align=\"center\"\u003eThis project is meant for those with a basic knowledge of Ethereum and smart contracts, who have some knowledge of the Flutter framework but are new to mobile dapps.\u003c/h3\u003e\n\n\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"README_Images/Flutter_and_Blockchain.jpg?raw=true\" alt=\"Flutter and Blockchain Logo\"/\u003e\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n# [Flutter and Blockchain](https://github.com/aniketambore/Flutter-Blockchain)\n\n\u003c/div\u003e\n\n## Table of Contents\n\n- [Setting up the development environment](#setting-up-the-development-environment)\n- [Directory Structure](#directory-structure)\n- [Compiling and Migrating Smart Contract](#compiling-and-migrating-smart-contract)\n- [Testing the Smart Contract](#testing-the-smart-contract)\n- [Contract Linking](#contract-linking)\n- [DAPPS](#dapps)\n- [Tutorials](#tutorials)\n- [Contributing](#contributing)\n\n## Setting up the development environment\n\nTruffle is the most popular development framework for Ethereum with a mission to make your life a whole lot easier. But before we install truffle make sure to install [**node**](https://nodejs.org/en/) .\n\nOnce we have node installed, we only need one command to install Truffle:\n**`npm install -g truffle`**\n\nWe will also be using [**Ganache**](http://truffleframework.com/ganache), a personal blockchain for Ethereum development you can use to deploy smart contracts, develop applications, and run tests. You can download Ganache by navigating to http://truffleframework.com/ganache and clicking the “Download” button.\n\n\n## Directory Structure\n\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"README_Images/directory_structure.png?raw=true\" width=\"30%\" alt=\"Directory Structure\"/\u003e\n\u003c/div\u003e\n\n- **contracts/** : Contains solidity contract file.\n- **migrations/** : Contains migration script files (Truffle uses a migration system to handle contract deployment).\n- **test/** : Contains test script files.\n- **truffle-config.js** : Contains truffle deployment configurations information.\n\n\n## Compiling and Migrating Smart Contract\n\n### Compilation\nIn the terminal, make sure you are in the root of the directory that contains the flutter and truffle project, Run the following command:\n**`truffle compile`**\n\nYou should see output similar to the following:\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"README_Images/truffle_compile_output.png?raw=true\" width=\"70%\" alt=\"Truffle Compile\"/\u003e\n\u003c/div\u003e\n\n### Migration\n\nBefore we can migrate our contract to the blockchain, we need to have a blockchain running. \nWe’re going to use **Ganache**, a personal blockchain for Ethereum development you can use to deploy contracts, \ndevelop applications, and run tests. \nIf you haven’t already, download [**Ganache**](http://truffleframework.com/ganache) and double-click the icon to launch the application. This will generate a blockchain running locally on port 7545.\n\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"README_Images/ganache.png?raw=true\" width=\"70%\" alt=\"Ganache\"/\u003e\n\u003c/div\u003e\n\n- Migrating the contract to the blockchain, run: **`truffle migrate`**\n\nYou should see output similar to the following:\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"README_Images/truffle_migrate.png?raw=true\" width=\"70%\" alt=\"Ganache\"/\u003e\n\u003c/div\u003e\n\n- Take a look into the Ganache, the first account originally had 100 ether, it is now lower, due to the transaction costs of migration.\n\n## Testing the Smart Contract\n\n- Running the test as: **`truffle test`**\n- If all the test pass, you’ll see the console output similar to this:\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"README_Images/truffle_test.png?raw=true\" width=\"70%\" alt=\"truffle test\"/\u003e\n\u003c/div\u003e\n\n## Contract Linking\n\n```\n📁 project(eg. helloworld,bidder,...)\n    📁 lib\n        🎯 contract_linking.dart\n          - Update _rpcUrl, _wsUrl, _privateKey as per your needs.\n```\n- You can get the RPC URL from the ganache :\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"README_Images/rpc_url.png?raw=true\" width=\"70%\" alt=\"truffle test\"/\u003e\n\u003c/div\u003e\n\n- Get the Private Key from ganache:\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"README_Images/private_key.png?raw=true\" width=\"70%\" alt=\"truffle test\"/\u003e\n\u003c/div\u003e\n\n- After Contract Linking, Just run the Flutter Project.\n\n## DAPPS\n\nHello World Dapp                                                            |   Population Dapp                                                        |\n:--------------------------------------------------------------------------:|:------------------------------------------------------------------------:|\n\u003cimg src=\"hello_world/screenshot/Screenshot_1.png?raw=true\" width=\"340px\"/\u003e |  \u003cimg src=\"population/screenshot/population.gif?raw=true\" width=\"320px\"/\u003e|\n\n\nBidder                                                           |  Minter                                                          | \n:---------------------------------------------------------------:|:----------------------------------------------------------------:|\n\u003cimg src=\"bidder/screenshot/bidder.gif?raw=true\" width=\"280px\"/\u003e | \u003cimg src=\"minter/Screenshot/minter.gif?raw=true\" width=\"340px\"/\u003e |\n\n\nCat Adoption                                                                |  Election        |\n:--------------------------------------------------------------------------:|:-----------------------------------:|\n\u003cimg src=\"cat_adoption/screenshot/catAdoption.gif?raw=true\" width=\"340px\"/\u003e | \u003cimg src=\"elections/screenshots/Screenshot_1.png?raw=true\" width=\"300px\"/\u003e |\n\n## Tutorials\n\n- [Flutter and Blockchain – Hello World Dapp](https://www.geeksforgeeks.org/flutter-and-blockchain-hello-world-dapp/)\n- [Flutter and Blockchain – Population Dapp](https://www.geeksforgeeks.org/flutter-and-blockchain-population-dapp/)\n\n\n## Contributing:\n\n - Fork it!\n - Create your feature branch: `git checkout -b my-new-feature`\n - Commit your changes: `git commit -am 'Add some feature'`\n - Push to the branch: `git push origin my-new-feature`\n - Submit a pull request.\n\n\n\u003ch3 align=\"center\"\u003eShow some ❤ and star the repo to support the project\u003c/h3\u003e\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faniketambore%2FFlutter-Blockchain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faniketambore%2FFlutter-Blockchain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faniketambore%2FFlutter-Blockchain/lists"}