forked from eatvio/eatvio_app
Added new screens (credentials and name)
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
import 'package:equatable/equatable.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import '/core/app_export.dart';
|
||||
import 'package:eatvio_app/presentation/credentials_screen/models/credentials_model.dart';
|
||||
part 'credentials_event.dart';
|
||||
part 'credentials_state.dart';
|
||||
|
||||
/// A bloc that manages the state of a Credentials according to the event that is dispatched to it.
|
||||
class CredentialsBloc extends Bloc<CredentialsEvent, CredentialsState> {
|
||||
CredentialsBloc(CredentialsState initialState) : super(initialState) {
|
||||
on<CredentialsInitialEvent>(_onInitialize);
|
||||
}
|
||||
|
||||
_onInitialize(
|
||||
CredentialsInitialEvent event,
|
||||
Emitter<CredentialsState> emit,
|
||||
) async {
|
||||
emit(state.copyWith(
|
||||
valueController: TextEditingController(),
|
||||
valueController1: TextEditingController(),
|
||||
valueController2: TextEditingController()));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user