app bar positioning
This commit is contained in:
@@ -300,13 +300,13 @@ AsyncValue<String?> selectedTabContainerId(Ref ref) {
|
||||
return const AsyncData(null);
|
||||
}
|
||||
|
||||
@Riverpod()
|
||||
Stream<int> tabScrollY(Ref ref, String? tabId, Duration sampleTime) {
|
||||
final eventService = ref.watch(eventServiceProvider);
|
||||
// @Riverpod()
|
||||
// Stream<int> tabScrollY(Ref ref, String? tabId, Duration sampleTime) {
|
||||
// final eventService = ref.watch(eventServiceProvider);
|
||||
|
||||
return eventService.scrollEvent
|
||||
.where((event) => event.tabId == tabId)
|
||||
.sampleTime(sampleTime)
|
||||
.map((event) => event.scrollY)
|
||||
.asBroadcastStream();
|
||||
}
|
||||
// return eventService.scrollEvent
|
||||
// .where((event) => event.tabId == tabId)
|
||||
// .sampleTime(sampleTime)
|
||||
// .map((event) => event.scrollY)
|
||||
// .asBroadcastStream();
|
||||
// }
|
||||
|
||||
@@ -337,72 +337,3 @@ final class SelectedTabContainerIdProvider
|
||||
|
||||
String _$selectedTabContainerIdHash() =>
|
||||
r'07899d29f69654d3b314d0da945ad402b1003b41';
|
||||
|
||||
@ProviderFor(tabScrollY)
|
||||
const tabScrollYProvider = TabScrollYFamily._();
|
||||
|
||||
final class TabScrollYProvider
|
||||
extends $FunctionalProvider<AsyncValue<int>, int, Stream<int>>
|
||||
with $FutureModifier<int>, $StreamProvider<int> {
|
||||
const TabScrollYProvider._({
|
||||
required TabScrollYFamily super.from,
|
||||
required (String?, Duration) super.argument,
|
||||
}) : super(
|
||||
retry: null,
|
||||
name: r'tabScrollYProvider',
|
||||
isAutoDispose: true,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$tabScrollYHash();
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return r'tabScrollYProvider'
|
||||
''
|
||||
'$argument';
|
||||
}
|
||||
|
||||
@$internal
|
||||
@override
|
||||
$StreamProviderElement<int> $createElement($ProviderPointer pointer) =>
|
||||
$StreamProviderElement(pointer);
|
||||
|
||||
@override
|
||||
Stream<int> create(Ref ref) {
|
||||
final argument = this.argument as (String?, Duration);
|
||||
return tabScrollY(ref, argument.$1, argument.$2);
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return other is TabScrollYProvider && other.argument == argument;
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode {
|
||||
return argument.hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
String _$tabScrollYHash() => r'dcb1e82b42bab98c4fc2ee4c7a22f37a28b8ce9e';
|
||||
|
||||
final class TabScrollYFamily extends $Family
|
||||
with $FunctionalFamilyOverride<Stream<int>, (String?, Duration)> {
|
||||
const TabScrollYFamily._()
|
||||
: super(
|
||||
retry: null,
|
||||
name: r'tabScrollYProvider',
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
isAutoDispose: true,
|
||||
);
|
||||
|
||||
TabScrollYProvider call(String? tabId, Duration sampleTime) =>
|
||||
TabScrollYProvider._(argument: (tabId, sampleTime), from: this);
|
||||
|
||||
@override
|
||||
String toString() => r'tabScrollYProvider';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user