Skip to content

Instantly share code, notes, and snippets.

View yaashwardhan's full-sized avatar
🧿

Yashwardhan Deshmukh yaashwardhan

🧿
  • Max Planck Institute for Intelligent Systems
  • Stuttgart, Germany
  • 10:58 (UTC +02:00)
  • LinkedIn in/yaashwardhan
View GitHub Profile
[
{
"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",
@yaashwardhan
yaashwardhan / main.dart
Last active February 18, 2021 16:39
Passing values from Stateless Widgets to other Stateless Widgets and Making New widgets to write cleaner code and remove repetitive code
//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(
@yaashwardhan
yaashwardhan / main.dart
Last active January 10, 2023 17:22
Passing data to a Stateful Widget from another Stateful Widget
import 'package:flutter/material.dart';
import 'page1.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
@yaashwardhan
yaashwardhan / main.dart
Last active June 20, 2021 06:18
Fetching data from a Stateful Widget to another Stateful Widget
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