Skip to content

Instantly share code, notes, and snippets.

View r100-stack's full-sized avatar
🎯
Focusing

Rohan r100-stack

🎯
Focusing
View GitHub Profile
@r100-stack
r100-stack / main.dart
Created October 1, 2020 22:41
Beginners' Guide to Flutter Development Week 1 - Hello World
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
@r100-stack
r100-stack / main.dart
Created March 10, 2021 21:34
Sample SliverGrid
import 'package:flutter/material.dart';
final Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
@r100-stack
r100-stack / main.dart
Created March 10, 2021 22:04
Sample code to have Dart object print its fields
class A {
int? i1;
int? i2;
A({this.i1, this.i2});
}
class B {
int? i1;
int? i2;
@r100-stack
r100-stack / main.dart
Last active March 11, 2021 02:22
Sample Flutter Toggle Selector
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
@r100-stack
r100-stack / main.dart
Created March 11, 2021 02:31
Hide keyboard in TextFormField
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
@r100-stack
r100-stack / main.dart
Last active March 15, 2021 10:28
Hide keyboard in TextFormField when clicked outside
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
@r100-stack
r100-stack / main.dart
Last active March 29, 2021 17:49
ClipRRect Demo
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
import 'dart:convert';
import 'package:dog_quotes_4/components/dog_card.dart';
import 'package:dog_quotes_4/models/dog.dart';
import 'package:dog_quotes_4/utils/quote_utils.dart';
import 'package:flutter/material.dart';
import 'package:http/http.dart' as http;
// TODO (6): Import the http.dart file as http
@r100-stack
r100-stack / main.dart
Last active September 27, 2022 03:45
joe burrow <3
import 'package:flutter/material.dart';
const Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override