Created with <3 with dartpad.dev.
Last active
September 11, 2023 08:53
-
-
Save Lootwig/52a200b50b9274ba415203505e759595 to your computer and use it in GitHub Desktop.
enchanted-rainbow-1284
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
const Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
home: Scaffold( | |
body: GestureDetector( | |
onTapDown: (_) => print('outer tap down received'), | |
child: Container( | |
color: Colors.white, | |
alignment: Alignment.center, | |
child: TransparentPointer( | |
child: GestureDetector( | |
onTapDown: (_) => print('inner tap down received'), | |
child: const Text('TAP ME'), | |
), | |
), | |
), | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment