mirror of
https://github.com/pd4d10/git-touch.git
synced 2026-04-30 19:37:35 -05:00
refactor: push method as extension
This commit is contained in:
@@ -6,7 +6,6 @@ import 'package:git_touch/widgets/mutation_button.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
|
||||
class UserHeader extends StatelessWidget {
|
||||
|
||||
const UserHeader({
|
||||
super.key,
|
||||
required this.avatarUrl,
|
||||
@@ -33,7 +32,7 @@ class UserHeader extends StatelessWidget {
|
||||
MutationButton(
|
||||
text: 'Switch accounts',
|
||||
onTap: () {
|
||||
theme.push(context, '/login');
|
||||
context.pushUrl('/login');
|
||||
},
|
||||
)
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user