mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-08 23:18:16 -07:00
feat: Android TV support (#503)
Co-authored-by: PartyDonut <PartyDonut@users.noreply.github.com>
This commit is contained in:
parent
7ab8c015b9
commit
c299492d6d
168 changed files with 12019 additions and 3073 deletions
16
lib/widgets/shared/ensure_visible.dart
Normal file
16
lib/widgets/shared/ensure_visible.dart
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
import 'package:flutter/material.dart';
|
||||
|
||||
extension EnsureVisibleHelper on BuildContext {
|
||||
Future<void> ensureVisible({
|
||||
Duration duration = const Duration(milliseconds: 300),
|
||||
double? alignment,
|
||||
Curve curve = Curves.fastOutSlowIn,
|
||||
}) {
|
||||
return Scrollable.ensureVisible(
|
||||
this,
|
||||
duration: duration,
|
||||
alignment: alignment ?? 0.5,
|
||||
curve: curve,
|
||||
);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue