Moved the AccountName widgets to pull providers from context

This commit is contained in:
Arseni
2025-12-22 21:38:26 +03:00
parent 4073c8819c
commit d26ba84094
3 changed files with 32 additions and 36 deletions

View File

@@ -1,18 +1,16 @@
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import 'package:pweb/providers/account_name.dart';
class AccountNameActions extends StatelessWidget {
const AccountNameActions({
super.key,
required this.state,
});
final AccountNameState state;
const AccountNameActions({super.key});
@override
Widget build(BuildContext context) {
final state = context.watch<AccountNameState>();
final theme = Theme.of(context);
if (state.isEditing) {