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/rendering.dart'; | |
import 'package:flutter/widgets.dart'; | |
import 'package:meta/meta.dart'; | |
/// Signature for a function that creates a widget with the supplied [FocusNode]. | |
typedef Widget EnsureVisibleBuilder(BuildContext context, FocusNode focusNode); | |
/// A widget that ensures it is always visible inside its ancestor scrollable | |
/// when focused. | |
class EnsureVisible extends StatefulWidget { |