sync changes
This commit is contained in:
@@ -3,7 +3,9 @@ import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
import 'package:go_router/go_router.dart';
|
||||
import '../../core/app_colors.dart';
|
||||
import '../components/code_dots.dart';
|
||||
import '../event/map_event.dart';
|
||||
import '../event/spalsh_event.dart';
|
||||
import '../viewmodel/map_bloc.dart';
|
||||
import '../viewmodel/pin_bloc.dart';
|
||||
import '../event/pin_event.dart';
|
||||
import '../state/pin_state.dart';
|
||||
@@ -143,6 +145,24 @@ class _PinLoginScreenState extends State<PinLoginScreen> {
|
||||
style: const TextStyle(color: AppColors.white70),
|
||||
),
|
||||
|
||||
const SizedBox(height: 20),
|
||||
|
||||
if (state is! PinCreateInProgress)
|
||||
TextButton(
|
||||
onPressed: () {
|
||||
context.read<MapBloc>().add(LogoutPressed());
|
||||
context.read<SplashBloc>().add(AuthCheckRequested());
|
||||
},
|
||||
child: const Text(
|
||||
"Забыли PIN-код?",
|
||||
style: TextStyle(
|
||||
color: AppColors.whiteText,
|
||||
decoration: TextDecoration.underline,
|
||||
fontSize: 14,
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
const SizedBox(height: 40),
|
||||
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user