Skip to content

Instantly share code, notes, and snippets.

View Maadhav's full-sized avatar
💻
Flutterizing...

Maadhav Sharma Maadhav

💻
Flutterizing...
View GitHub Profile
@Maadhav
Maadhav / .git...HEAD
Created September 9, 2023 06:31
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.18+commit.87f61d96.js&optimize=false&runs=200&gist=
ref: refs/heads/main
@Maadhav
Maadhav / blogger_service.dart
Last active March 6, 2021 14:47
Flutter Blogger App Gist
import 'package:flutter_blogger_app/data/models.dart';
import 'package:flutter_blogger_app/utils/constans.dart';
import 'package:http/http.dart' as http;
class BloggerService {
static Future<BloggerModel> get posts async {
var request = http.Request(
'GET',
Uri.parse(
'https://www.googleapis.com/blogger/v3/blogs/${Constants.blogId}/posts?key=${Constants.apiKey}'));
@Maadhav
Maadhav / paste_bin.dart
Created September 1, 2020 05:48
Create a New Paste in PasteBin using Dart
http.post(
'https://pastebin.com/api/api_post.php',
headers: {"Content-Type": "application/x-www-form-urlencoded"},
body:"api_dev_key=<PASTEBIN_API_KEY>&api_paste_code=<DATA_YOU_WANT_TO_PASTE>&api_option=paste"
)
.then((value) => print(value.body));
@Maadhav
Maadhav / home.dart
Last active August 5, 2020 07:37
Bubble Bottom Bar Flutter
import 'package:bubble_bottom_bar/bubble_bottom_bar.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
class Home extends StatefulWidget {
@override
_HomeState createState() => _HomeState();
}
class _HomeState extends State<Home> {
@Maadhav
Maadhav / SABT.dart
Created July 29, 2020 04:07
Hide title in Flutter SliverAppBar on scroll
class SABT extends StatefulWidget {
final Widget child;
const SABT({
Key key,
@required this.child,
}) : super(key: key);
@override
_SABTState createState() {
return new _SABTState();
}
@Maadhav
Maadhav / main.dart
Created April 11, 2020 09:18
Flutter Switch main.dart
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(