Skip to content

Instantly share code, notes, and snippets.

View piedcipher's full-sized avatar
🌻
You're the sunflower

Tirth piedcipher

🌻
You're the sunflower
  • 20:28 (UTC +05:30)
View GitHub Profile
@piedcipher
piedcipher / main.dart
Created February 2, 2024 08:39
a tiny tale about an assert which broke my widget in Flutter 3.16
import 'package:flutter/material.dart';
const Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@piedcipher
piedcipher / custom_appbar.dart
Last active September 22, 2020 15:07
custom appbar
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
@piedcipher
piedcipher / pubspec.yaml
Created September 16, 2020 07:53
Beer App - pubspec.yaml
# ...
dependencies:
# ...
flutter_bloc: ^6.0.5
http: ^0.12.2
json_annotation: ^3.0.1
dev_dependencies:
# ...
@piedcipher
piedcipher / main.dart
Last active February 12, 2020 19:38
ListTile Favorite Demo - StackOverflow
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
@piedcipher
piedcipher / test2.dart
Last active February 12, 2020 16:37
Gist Generated by DartpadGenerator from VSCode
// test2 private - rel mode
void main() {
}//
@piedcipher
piedcipher / test1.dart
Created February 9, 2020 11:55
Gist Generated by DartpadGenerator from VSCode
// test1 vscode
void main() {
}
@piedcipher
piedcipher / test1.dart
Created February 6, 2020 17:48
Gist Generated by DartpadGenerator from VSCode
// test1 public
void main() {
}
@piedcipher
piedcipher / test1.dart
Created February 6, 2020 17:38
Gist Generated by DartpadGenerator from VSCode
// test1
void main() {
}
@piedcipher
piedcipher / my-awesome-code.dart
Created January 19, 2020 05:04
My Awesome Code - Hello World
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
@piedcipher
piedcipher / my-awesome-code.dart
Created January 19, 2020 05:04
My Awesome Code - Hello World
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(