Skip to content

Instantly share code, notes, and snippets.

View mkobuolys's full-sized avatar
🚀
Going brrrr

Mangirdas Kazlauskas mkobuolys

🚀
Going brrrr
View GitHub Profile
@mkobuolys
mkobuolys / main.dart
Last active March 14, 2022 18:45
Flutter Provider: notifyListeners does not update AlertDialog widget
/// https://dartpad.dev/f542682880bf16d81d6f6518fa15b11f
/// Answer to the Stack Overflow question: https://stackoverflow.com/questions/71468724/flutter-provider-notifylisteners-does-not-update-alertdialog-widget
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
const Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
@mkobuolys
mkobuolys / main.dart
Last active March 17, 2022 19:46
CupertinoPicker example
/// https://dartpad.dev/179b4b1c46d0eace0e5765aab6ca6410
/// Answer to the Stack Overflow question: https://stackoverflow.com/questions/71504718/animated-moveable-list-in-flutter
import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart';
const Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
@mkobuolys
mkobuolys / main.dart
Last active February 14, 2023 03:52
NOPE Flutter Form Validation Demo
/// https://dartpad.dev/b0fc02fd44ce51a826bf19cac1a9c119
import 'package:flutter/material.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {