Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Marko Devcic deva666

🏠
Working from home
View GitHub Profile
@deva666
deva666 / main.dart
Created Oct 13, 2021
Flutter inherited widgets
View main.dart
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 Nov 21, 2022
Flutter OverlayEntry example
View main.dart
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(