mirrored_repositories/Pretty-Ui/Flutter Ui Dev/Cars Encyclopedia Interaction/lib/core
import 'package:flutter/material.dart';

extension WidgetExtension on Widget {
  
  Widget addPostFrameCallback(VoidCallback callback) {
    WidgetsBinding.instance.addPostFrameCallback((_) {
      callback();
    });
    return this;
  }

  Widget inkwell(VoidCallback callback) {
    return InkWell(
      onTap: callback,
      child: this,
    );
  }
}
