Skip to content

Instantly share code, notes, and snippets.

View dhruvilp's full-sized avatar
💭
👨‍💻 working on something really cool

Dhruvil Patel dhruvilp

💭
👨‍💻 working on something really cool
View GitHub Profile
@dhruvilp
dhruvilp / docs.py
Last active July 13, 2019 15:06
Python Guides
# Virtual Environment Setup
mkdir apis
cd apis
python3 -m venv apis
source apis/bin/activate
pip install requests
# Create a python file called test.py
import json
import requests
@dhruvilp
dhruvilp / assignment_1.ipynb
Last active February 29, 2020 15:20
Assignment_1.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dhruvilp
dhruvilp / main.dart
Created March 25, 2020 21:13
Custom Drawer & Progress Indicators
// 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
@dhruvilp
dhruvilp / main.dart
Last active March 25, 2020 21:31
Neumorphic / Skeuomorphic Container
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Neumorphic Container',
debugShowCheckedModeBanner: false,
@dhruvilp
dhruvilp / main.dart
Last active March 25, 2020 21:45
Neumorphic / Skeuomorphic Button
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Neumorphic Container',
debugShowCheckedModeBanner: false,
@dhruvilp
dhruvilp / main.dart
Last active March 25, 2020 22:25
Flutter Responsive Layout
import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Responsive Layout',
@dhruvilp
dhruvilp / main.dart
Created March 28, 2020 20:11
Mobile View in Web Browser
// 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
@dhruvilp
dhruvilp / main.dart
Created June 16, 2020 17:06
NavigationRail Example
// 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
@dhruvilp
dhruvilp / ResponsiveWidget.dart
Created June 22, 2020 23:06
Flutter Responsive Widget
class ResponsiveWidget extends StatelessWidget {
final Widget largeScreen;
final Widget mediumScreen;
final Widget smallScreen;
const ResponsiveWidget({
Key key,
@required this.largeScreen,
this.mediumScreen,
this.smallScreen,
@dhruvilp
dhruvilp / main.dart
Last active June 23, 2020 02:21
Flutter Art
// Inspiration: Robert Felker flutter art work
// [WORK-IN-PROGRESS]
import 'dart:math' as math;
import 'dart:ui';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
// Look Ma NO WIDGET in Flutter !!!