Skip to content

Instantly share code, notes, and snippets.

@Lootwig
Last active September 11, 2023 08:53
Show Gist options
  • Save Lootwig/52a200b50b9274ba415203505e759595 to your computer and use it in GitHub Desktop.
Save Lootwig/52a200b50b9274ba415203505e759595 to your computer and use it in GitHub Desktop.
enchanted-rainbow-1284

enchanted-rainbow-1284

Created with <3 with dartpad.dev.

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