Skip to content

Commit

Permalink
centerKeyをbuildの外で作る
Browse files Browse the repository at this point in the history
  • Loading branch information
poppingmoon committed Sep 2, 2023
1 parent d1853b1 commit a436e02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/view/timeline_page/misskey_timeline.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ import 'package:miria/view/common/error_dialog_handler.dart';
import 'package:miria/view/timeline_page/note_wrapper.dart';

class MisskeyTimeline extends ConsumerWidget {
const MisskeyTimeline({super.key, required this.tabSetting});
MisskeyTimeline({super.key, required this.tabSetting});

final TabSetting tabSetting;
final centerKey = UniqueKey();

@override
Widget build(BuildContext context, WidgetRef ref) {
final timeline = ref.watch(timelineRepositoryProvider(tabSetting));
final controller = ref.watch(timelineControllerProvider(tabSetting));
final centerKey = UniqueKey();

return Column(
children: [
Expand Down

0 comments on commit a436e02

Please sign in to comment.