kopia lustrzana https://gitlab.com/mysocialportal/relatica
Go to timeline screen when focus mode activated
rodzic
f5241a72fa
commit
5ca129f3bb
|
@ -1,7 +1,10 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:go_router/go_router.dart';
|
||||
import 'package:relatica/riverpod_controllers/focus_mode.dart';
|
||||
|
||||
import '../routes.dart';
|
||||
|
||||
class FocusModeMenuItem extends ConsumerWidget {
|
||||
const FocusModeMenuItem({super.key});
|
||||
|
||||
|
@ -20,6 +23,7 @@ class FocusModeMenuItem extends ConsumerWidget {
|
|||
title: Text(title),
|
||||
onTap: () {
|
||||
ref.read(focusModeProvider.notifier).setMode(update);
|
||||
context.go(ScreenPaths.timelines);
|
||||
},
|
||||
),
|
||||
);
|
||||
|
|
Ładowanie…
Reference in New Issue