FilledStacks / flutter-tutorials

The repo contains the source code for all the tutorials on the FilledStacks Youtube channel.
MIT License
4.74k stars 1.76k forks source link

Hover effects tutorial deprecated. #107

Open wilpar opened 3 years ago

wilpar commented 3 years ago

Love ya man, but your hover tutorial should be put to rest. Hover pointers can now be set simply:

import 'package:flutter/rendering.dart';

FocusableActionDetector(
  mouseCursor: SystemMouseCursors.click,
  child: GestureDetector(
    onTap: () {
      Navigator.popUntil(context, ModalRoute.withName('/'));
    },
    child: Image.asset(
      'filledstacksrocks.png',
      height: 48,
    ),
  ),
),
FilledStacks commented 3 years ago

haha, nooooooooo 😢 i can't put it to rest. i'll leave it up there in case anyone wants to know the internals of how it was built. It still shows usage of extensions to improve UI building as well which I think is pretty helpful. especially the animate extension based on UI interactions.