Created
August 6, 2020 18:33
-
-
Save vintage/f761e7ee37f59f73c4c821ad38490551 to your computer and use it in GitHub Desktop.
This file contains hidden or 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'; | |
final Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
theme: ThemeData.dark().copyWith(scaffoldBackgroundColor: darkBlue), | |
debugShowCheckedModeBanner: false, | |
home: Scaffold( | |
body: Column( | |
children: [ | |
Listener( | |
onPointerEnter: (details) => print("entering red $details"), | |
child: Container( | |
color: Colors.red, | |
width: 200, | |
height: 200, | |
), | |
), | |
SizedBox(height: 24), | |
Listener( | |
onPointerEnter: (details) => print("entering blue $details"), | |
child: Container( | |
color: Colors.blue, | |
width: 200, | |
height: 200, | |
), | |
), | |
], | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment