feat(feed, profile): добавлен переход на страинцу автора в посте, рецепте и дете. при нажатии на изображение в рецепте и диеты теперь переход на страницу с подробнее.

This commit is contained in:
mso7nueh
2024-08-14 11:34:29 +03:00
parent 1e992e9dd6
commit 919035a455
77 changed files with 3943 additions and 2745 deletions

View File

@@ -25,8 +25,8 @@ class CustomDropDown extends StatelessWidget {
this.onChanged,
this.defaultValue,
}) : super(
key: key,
);
key: key,
);
final Alignment? alignment;
@@ -72,9 +72,9 @@ class CustomDropDown extends StatelessWidget {
Widget build(BuildContext context) {
return alignment != null
? Align(
alignment: alignment ?? Alignment.center,
child: _buildDropDownWidget(context),
)
alignment: alignment ?? Alignment.center,
child: _buildDropDownWidget(context),
)
: _buildDropDownWidget(context);
}
@@ -85,20 +85,14 @@ class CustomDropDown extends StatelessWidget {
focusNode: focusNode ?? FocusNode(),
icon: icon,
autofocus: autofocus!,
style: textStyle ?? Theme
.of(context)
.textTheme
.titleMedium,
style: textStyle ?? Theme.of(context).textTheme.titleMedium,
items: items?.map((SelectionPopupModel item) {
return DropdownMenuItem<SelectionPopupModel>(
value: item,
child: Text(
item.title,
overflow: TextOverflow.ellipsis,
style: hintStyle ?? Theme
.of(context)
.textTheme
.titleMedium,
style: hintStyle ?? Theme.of(context).textTheme.titleMedium,
),
);
}).toList(),
@@ -117,10 +111,7 @@ class CustomDropDown extends StatelessWidget {
InputDecoration _buildInputDecoration(BuildContext context) {
return InputDecoration(
hintText: hintText ?? "",
hintStyle: hintStyle ?? Theme
.of(context)
.textTheme
.titleMedium,
hintStyle: hintStyle ?? Theme.of(context).textTheme.titleMedium,
prefixIcon: prefix,
prefixIconConstraints: prefixConstraints,
suffixIcon: suffix,
@@ -132,10 +123,7 @@ class CustomDropDown extends StatelessWidget {
top: 6,
bottom: 6,
),
fillColor: fillColor ?? Theme
.of(context)
.colorScheme
.onPrimary,
fillColor: fillColor ?? Theme.of(context).colorScheme.onPrimary,
filled: filled,
border: borderDecoration ??
OutlineInputBorder(