This file contains 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
[ | |
{ | |
"company_name": "Reliance Industries Limited", | |
"stock_ticker": "RELIANCE.NS", | |
"logo_url": "" | |
}, | |
{ | |
"company_name": "HDFC Bank Limited", | |
"stock_ticker": "HDFCBANK.NS", | |
"logo_url": "" |
This file contains 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
[ | |
{ | |
"Mumbai": { | |
"Andheri East":"19.115327,72.852745", | |
"Andheri West":"19.116949,72.833519", | |
"Antop Hill":"19.023417,72.868452", | |
"Bandra East":"19.061486,72.848756", | |
"Bandra Kurla Complex":"19.067310,72.865448", | |
"Bandra Reclamation":"19.051100,72.829406", | |
"Bandra West":"19.057574,72.828419", |
This file contains 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
//Passing values from Stateless Widgets to other Stateless Widgets and Making New widgets to write cleaner code and remove repetitive code | |
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( |
This file contains 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 'page1.dart'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { |
This file contains 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 'page1.dart'; | |
//TODO: use similar code later as either a changeable theme page or a settings page for your app and also implement shared preferences | |
//change the colour of the container depending on direction of switch on the next page | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override |