Skip to content

Instantly share code, notes, and snippets.

View deva666's full-sized avatar
🏠
Working from home

Marko Devcic deva666

🏠
Working from home
View GitHub Profile
@deva666
deva666 / main.dart
Created October 13, 2021 11:56
Flutter inherited widgets
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class IsVisible extends InheritedWidget {
final bool visible;
const IsVisible(this.visible, {required Widget child, Key? key}) : super(child: child, key: key);
@deva666
deva666 / main.dart
Last active October 4, 2023 05:45
Flutter OverlayEntry example
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(