feat(chat): add trailing comma rules

This commit is contained in:
mso7nueh
2024-06-25 16:05:55 +03:00
parent 6ea4a23ad6
commit b1b6ffe0f3
120 changed files with 549 additions and 546 deletions

View File

@@ -50,12 +50,12 @@ class FeedBloc extends Bloc<FeedEvent, FeedState> {
emit((currentState).copyWith(
posts: data,
myProfileModelObj: currentState.myProfileModelObj,
));
),);
} else {
print('Got unloaded');
emit(FeedLoadedState(
posts: data,
));
),);
}
} else {
// Один или несколько ключевых полей отсутствуют, обрабатываем ошибку

View File

@@ -56,7 +56,7 @@ class FeedScreen extends StatelessWidget {
SizedBox(height: 20),
_buildMenu(context, state),
SizedBox(height: 20),
_buildBlogPostList(context, state)
_buildBlogPostList(context, state),
],
),
),
@@ -108,7 +108,7 @@ class FeedScreen extends StatelessWidget {
),
),
],
)
),
],
),
),
@@ -235,8 +235,8 @@ class FeedScreen extends StatelessWidget {
),
Text(
"Комментировать",
)
]),
),
],),
),
Spacer(),
Row(children: [
@@ -246,18 +246,18 @@ class FeedScreen extends StatelessWidget {
),
Text(
"Нравится",
)
]),
),
],),
Spacer(),
Padding(
padding: EdgeInsets.only(right: 4),
child: Icon(Icons.share_outlined),
),
]),
],),
],
),
),
]));
],),);
}
Function onTapBack(BuildContext context) {

View File

@@ -24,7 +24,7 @@ class CustomSearchView extends StatelessWidget {
this.fillColor,
this.filled = true,
this.validator,
this.onChanged})
this.onChanged,})
: super(
key: key,
);
@@ -76,7 +76,7 @@ class CustomSearchView extends StatelessWidget {
return alignment != null
? Align(
alignment: alignment ?? Alignment.center,
child: searchViewWidget(context))
child: searchViewWidget(context),)
: searchViewWidget(context);
}
@@ -113,7 +113,7 @@ class CustomSearchView extends StatelessWidget {
SizedBox(
child: Padding(
padding: EdgeInsets.only(left: 10),
child: Icon(Icons.search)),
child: Icon(Icons.search),),
),
prefixIconConstraints: prefixConstraints ??
BoxConstraints(