Require explicit type

This commit is contained in:
Ming Ming 2024-10-29 01:15:26 +08:00
parent 3089ab7bbb
commit 7f328b07f9
2 changed files with 2 additions and 2 deletions

View file

@ -16,7 +16,7 @@ class ValueStreamBuilderEx<T> extends StreamBuilder<T> {
ValueStreamBuilderEx({
super.key,
ValueStream<T>? stream,
required StreamWidgetBuilder builder,
required StreamWidgetBuilder<T> builder,
}) : super(
stream: stream,
initialData: stream?.value,

View file

@ -152,7 +152,7 @@ class _NavBarSharingButton extends StatelessWidget {
@override
Widget build(BuildContext context) {
return ValueStreamBuilderEx(
return ValueStreamBuilderEx<bool>(
stream: context
.read<AccountController>()
.accountPrefController