fix some visual issues
This commit is contained in:
parent
4c46d7fabb
commit
9ef214be69
|
|
@ -42,7 +42,7 @@ class _HashtagState extends State<Hashtag> {
|
|||
builder: (context, state, child) => SliverStateHandler<HashtagState>(
|
||||
emptyState: const EmptyList(),
|
||||
enableEmptyState: state.items.isEmpty,
|
||||
itemPadding: const EdgeInsets.only(bottom: 8),
|
||||
itemPadding: const EdgeInsets.symmetric(vertical: 8.0),
|
||||
state: state,
|
||||
placeholder: RadarOverview.placeholder,
|
||||
builder: (context, state, index) {
|
||||
|
|
|
|||
|
|
@ -180,7 +180,7 @@ class _InfographyScreenState extends State<InfographyScreen> {
|
|||
children: [
|
||||
placeholder,
|
||||
const SizedBox(
|
||||
height: 4,
|
||||
height: 8.0,
|
||||
),
|
||||
placeholder
|
||||
],
|
||||
|
|
@ -191,13 +191,16 @@ class _InfographyScreenState extends State<InfographyScreen> {
|
|||
),
|
||||
enableEmptyState:
|
||||
context.watch<InfographyScreenState>().contents.isEmpty,
|
||||
topPadding: 16,
|
||||
topPadding: 16.0,
|
||||
onRetry: context.read<InfographyScreenState>().init,
|
||||
state: context.watch<InfographyScreenState>(),
|
||||
builder: (context, state) => Expanded(
|
||||
child: ListView.builder(
|
||||
child: ListView.separated(
|
||||
controller: _scrollController,
|
||||
itemCount: state.contents.length,
|
||||
padding: const EdgeInsets.symmetric(vertical: 8.0),
|
||||
separatorBuilder: (BuildContext context, i) =>
|
||||
const SizedBox(height: 8.0),
|
||||
itemBuilder: (context, index) => InfographyItem(
|
||||
id: state.contents[index].id,
|
||||
onMarkChanged: (id, value, _) => state.changeMark(id, value),
|
||||
|
|
@ -217,7 +220,6 @@ class _InfographyScreenState extends State<InfographyScreen> {
|
|||
}
|
||||
|
||||
static Widget get placeholder => const DidvanCard(
|
||||
margin: EdgeInsets.all(8),
|
||||
padding: EdgeInsets.all(8),
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
|
|
|
|||
|
|
@ -96,7 +96,6 @@ class InfographyItem extends StatelessWidget {
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return DidvanCard(
|
||||
margin: const EdgeInsets.all(12),
|
||||
padding: const EdgeInsets.all(12),
|
||||
child: Column(
|
||||
children: [
|
||||
|
|
|
|||
|
|
@ -240,7 +240,7 @@ class _PodcastsState extends State<Podcasts> {
|
|||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
ItemTitle(
|
||||
title: 'تاریخ رادار',
|
||||
title: 'تاریخ ایجاد',
|
||||
style: Theme.of(context).textTheme.bodyMedium,
|
||||
icon: DidvanIcons.calendar_range_regular,
|
||||
),
|
||||
|
|
|
|||
|
|
@ -142,34 +142,37 @@ class StudioDetailsWidget extends StatelessWidget {
|
|||
),
|
||||
);
|
||||
}
|
||||
return Column(
|
||||
children: [
|
||||
if (state.studio.relatedContents.isEmpty &&
|
||||
!state.studio.relatedContentsIsEmpty)
|
||||
for (var i = 0; i < 3; i++)
|
||||
return Padding(
|
||||
padding: const EdgeInsets.only(top: 24.0),
|
||||
child: Column(
|
||||
children: [
|
||||
if (state.studio.relatedContents.isEmpty &&
|
||||
!state.studio.relatedContentsIsEmpty)
|
||||
for (var i = 0; i < 3; i++)
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(
|
||||
bottom: 8,
|
||||
left: 16,
|
||||
right: 16,
|
||||
),
|
||||
child: MultitypeOverview.placeholder,
|
||||
),
|
||||
for (var i = 0;
|
||||
i < state.studio.relatedContents.length;
|
||||
i++)
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(
|
||||
bottom: 8,
|
||||
left: 16,
|
||||
right: 16,
|
||||
),
|
||||
child: MultitypeOverview.placeholder,
|
||||
child: MultitypeOverview(
|
||||
item: state.studio.relatedContents[i],
|
||||
onMarkChanged: (id, value) {},
|
||||
),
|
||||
),
|
||||
for (var i = 0;
|
||||
i < state.studio.relatedContents.length;
|
||||
i++)
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(
|
||||
bottom: 8,
|
||||
left: 16,
|
||||
right: 16,
|
||||
),
|
||||
child: MultitypeOverview(
|
||||
item: state.studio.relatedContents[i],
|
||||
onMarkChanged: (id, value) {},
|
||||
),
|
||||
),
|
||||
],
|
||||
],
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
|
|
|
|||
|
|
@ -285,7 +285,7 @@ class _RadarState extends State<Radar> {
|
|||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
ItemTitle(
|
||||
title: 'تاریخ رادار',
|
||||
title: 'تاریخ ایجاد',
|
||||
style: Theme.of(context).textTheme.bodyMedium,
|
||||
icon: DidvanIcons.calendar_range_regular,
|
||||
),
|
||||
|
|
|
|||
Loading…
Reference in New Issue