This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"basics": { | |
"name": "Aakash Pandey", | |
"label": "FullStack Web3 Developer", | |
"email": "[email protected]", | |
"phone": "+91 7019374399", | |
"url": "https://github.com/aakashpandey", | |
"summary": "A FullStack and Web3 developer with extensive experience in cutting-edge technology stacks. With a track record of success working at various startup companies, I have built numerous real-world projects that demonstrate my ability to design and develop robust, scalable, and efficient systems.", | |
"location": { | |
"address": "Bengaluru", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"basics": { | |
"name": "Aakash Pandey", | |
"label": "FullStack Web3 Developer", | |
"email": "[email protected]", | |
"phone": "+91 7019374399", | |
"url": "https://github.com/aakashpandey", | |
"summary": "A FullStack and Web3 developer with extensive experience in cutting-edge technology stacks. With a track record of success working at various startup companies, I have built numerous real-world projects that demonstrate my ability to design and develop robust, scalable, and efficient systems.", | |
"location": { | |
"address": "Bengaluru", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ....... | |
Expanded( | |
child: StateBuilder( | |
models: [allHeroesList], | |
builder: (context, _) { | |
return ListView.separated( | |
padding: EdgeInsets.symmetric(horizontal: 10), | |
itemCount: allHeroesList.allHeroes.length, | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
floatingActionButton: FloatingActionButton( | |
child: Icon(Icons.save), | |
onPressed: () { | |
if (_inp.text != "" && widget.hero == null) { | |
allHeroesList.addHero(_inp.text); | |
Navigator.of(context).pop(); | |
} else if (_inp.text != "") { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import './config/routes.dart'; | |
import './config/themes.dart'; | |
import './model/herodata.dart'; | |
final HeroList allHeroesList = HeroList(); | |
void main() => runApp(MyApp()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:states_rebuilder/states_rebuilder.dart'; | |
class HeroList extends StatesRebuilder { | |
List<HeroModel> allHeroes = []; | |
int count = 6; | |
HeroList() { | |
this.allHeroes.add(HeroModel(1, "Narco")); | |
this.allHeroes.add(HeroModel(2, "Bombasto")); | |
this.allHeroes.add(HeroModel(3, "Celeritas")); |