chore: realized I could just pull from the timelineProvider instead of storing it in the asset viewer state

This commit is contained in:
bwees 2025-10-13 00:34:37 -05:00
parent 268867353b
commit b397538478
No known key found for this signature in database
5 changed files with 7 additions and 21 deletions

View file

@ -61,9 +61,8 @@ class AssetViewer extends ConsumerStatefulWidget {
@override
ConsumerState createState() => _AssetViewerState();
static void setAsset(WidgetRef ref, BaseAsset asset, TimelineType timelineType) {
static void setAsset(WidgetRef ref, BaseAsset asset) {
ref.read(assetViewerProvider.notifier).reset();
ref.read(assetViewerProvider.notifier).setTimelineType(timelineType);
_setAsset(ref, asset);
}