Skip to content

Instantly share code, notes, and snippets.

@vintage
Created August 6, 2020 18:33
Show Gist options
  • Save vintage/226d5ccb33fa4a479ce392ebac04228a to your computer and use it in GitHub Desktop.
Save vintage/226d5ccb33fa4a479ce392ebac04228a to your computer and use it in GitHub Desktop.
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