Skip to content

Instantly share code, notes, and snippets.

View maheshmnj's full-sized avatar
💭
Bring it on 🔥

Mahesh Jamdade maheshmnj

💭
Bring it on 🔥
View GitHub Profile
@maheshmnj
maheshmnj / helloworld.dart
Last active January 23, 2022 17:11
Flutter Basic "Hello World" Code (Medium blog post)
Scaffold(
body: Container(
color: Colors.blueGrey,
child: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Text("Hello World")
],
),
@maheshmnj
maheshmnj / gist:298e119e44f7016770d3d5414a556ed2
Last active December 22, 2018 03:57
opens an Empty BottomSheet on button press
MaterialButton(
child: Text(
"Cupertino date Picker",
style: TextStyle(color: Colors.white),
),
color: Colors.redAccent,
onPressed: () {
showModalBottomSheet(
context: context,
builder: (BuildContext builder) {
@maheshmnj
maheshmnj / cupertinopicker.dart
Last active August 22, 2022 01:55
Complete Code for Cupertino Picker
import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart';
void main() {
runApp(CupertinoExample());
}
class CupertinoExample extends StatefulWidget {
@override
_CupertinoExampleState createState() => _CupertinoExampleState();
@maheshmnj
maheshmnj / Beautiful List View
Created March 1, 2019 19:18
A beautiful List View design
import 'package:flutter/material.dart';
import 'package:flutter/services.dart'; //used for fullscreen
void main() => runApp(AwesomeApp());
class AwesomeApp extends StatefulWidget {
@override
_AwesomeAppState createState() => _AwesomeAppState();
}
@maheshmnj
maheshmnj / Solution.java
Created June 2, 2019 10:45
Double to Mixed Fractions
import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
public class Solution {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
@maheshmnj
maheshmnj / script.js
Last active June 25, 2019 14:53
to run this file "node script.js" make sure you have node installed in your environment,I have statically assigned the array change it as per the test cases
var array = [{
name:'xyz',
ranking: 13
},{
name:'xys',
ranking:243
},{
name:'pqr',
ranking: -32
},{
@maheshmnj
maheshmnj / State Management Bloc
Last active October 23, 2019 13:23
trying to change theme of app from light<->dark using bloc
nightBloc.dart
import 'dart:async';
import 'package:rxdart/rxdart.dart';
class NightBloc {
final nightController = BehaviorSubject<bool>();
StreamSink<bool> get toggleSink => nightController.sink;
@maheshmnj
maheshmnj / .csv
Last active December 17, 2019 10:37
neo4j backup
n
{deleted:false,updated_at:1573032117501,count:0,created_at:1573032117501,_id:71343504-6880-42a5-9eef-fc23487fdffe,family_name:jamdade,first_name:mahesh}
{skill:[]}
{from:,deleted:false,designation:,totalExperience:0,name_of_organisation:}
{degree:,gpa:0.0,deleted:false,till:,name_of_organisation:}
{user_id:fe34758f-6069-4824-a3cf-4bc2e94aa956,reputation:0,deleted:false}
{deleted:false,invited_by:67d20fe6-34e2-4b04-9320-b8ed36eea475,_id:82f63c8d-4a0b-4600-b28e-bd2997a72485,invite_accepted:false}
{deleted:false,invited_by:14912452-e5cc-41b9-8f91-ff4403134bff,_id:2674b668-3be6-4f74-8965-93ccb3bac82d,invite_accepted:false}
{deleted:false,invited_by:14912452-e5cc-41b9-8f91-ff4403134bff,_id:15ef58d8-510d-401a-a560-c765a5b32a70,invite_accepted:false}
{deleted:false,invited_by:67d20fe6-34e2-4b04-9320-b8ed36eea475,_id:c88fd5e8-0a8a-44df-9aae-d4a40d6e07cc,invite_accepted:false}
@maheshmnj
maheshmnj / main.dart
Last active February 6, 2020 00:16
dropdown in flutter
import 'package:flutter/material.dart';
final Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
@maheshmnj
maheshmnj / main.dart
Created February 8, 2020 11:10
end drawer image stacked issue
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override