forked from eatvio/eatvio_app
trailing comma rule added
This commit is contained in:
@@ -44,11 +44,11 @@ class SubscribersBloc extends Bloc<SubscribersEvent, SubscribersState> {
|
||||
emit((currentState).copyWith(
|
||||
subscribers: data,
|
||||
myProfileModelObj: currentState.myProfileModelObj,
|
||||
));
|
||||
),);
|
||||
} else {
|
||||
emit(SubscribersLoadedState(
|
||||
subscribers: data,
|
||||
));
|
||||
),);
|
||||
}
|
||||
} else {
|
||||
// Один или несколько ключевых полей отсутствуют, обрабатываем ошибку
|
||||
|
||||
@@ -20,7 +20,7 @@ class SubscribersScreen extends StatelessWidget {
|
||||
static Widget builder(BuildContext context) {
|
||||
return BlocProvider<SubscribersBloc>(
|
||||
create: (context) => SubscribersBloc(SubscribersState(myProfileModelObj: SubscribersModel()))..add(SubscribersInitialEvent()),
|
||||
child: SubscribersScreen());
|
||||
child: SubscribersScreen(),);
|
||||
}
|
||||
|
||||
Widget build(BuildContext context) {
|
||||
@@ -93,7 +93,7 @@ class SubscribersScreen extends StatelessWidget {
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(right: 20.0),
|
||||
child: GestureDetector(child: Icon(Icons.create_outlined)),
|
||||
)
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
@@ -149,7 +149,7 @@ class SubscribersScreen extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
],
|
||||
)
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
@@ -212,6 +212,6 @@ class SubscribersScreen extends StatelessWidget {
|
||||
),
|
||||
subtitle: Text(subscriber?['description'] ?? ''),
|
||||
trailing: GestureDetector(child: Icon(Icons.edit)),
|
||||
));
|
||||
),);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user