chore: fix inkwell border radius in activity summary (#5520)
This commit is contained in:
parent
3630b84c7d
commit
bfc3b9ff40
1 changed files with 65 additions and 66 deletions
|
|
@ -97,17 +97,16 @@ class ActivitySummary extends StatelessWidget {
|
|||
color: theme.colorScheme.surface.withAlpha(128),
|
||||
borderRadius: BorderRadius.circular(12.0),
|
||||
),
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.symmetric(
|
||||
horizontal: 8.0,
|
||||
),
|
||||
child: Column(
|
||||
spacing: 4.0,
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
InkWell(
|
||||
hoverColor: theme.colorScheme.surfaceTint.withAlpha(55),
|
||||
onTap: toggleInstructions,
|
||||
child: Column(
|
||||
spacing: 4.0,
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
InkWell(
|
||||
borderRadius: BorderRadius.circular(12.0),
|
||||
hoverColor: theme.colorScheme.surfaceTint.withAlpha(55),
|
||||
onTap: toggleInstructions,
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
child: Column(
|
||||
spacing: 4.0,
|
||||
children: [
|
||||
|
|
@ -139,69 +138,69 @@ class ActivitySummary extends StatelessWidget {
|
|||
],
|
||||
),
|
||||
),
|
||||
if (showInstructions) ...[
|
||||
Row(
|
||||
spacing: 8.0,
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
Text(
|
||||
activity.req.mode,
|
||||
style: theme.textTheme.bodyMedium,
|
||||
),
|
||||
Row(
|
||||
spacing: 4.0,
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
const Icon(Icons.school, size: 12.0),
|
||||
Text(
|
||||
activity.req.cefrLevel.string,
|
||||
style: theme.textTheme.bodyMedium,
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
ActivitySessionDetailsRow(
|
||||
icon: Symbols.target,
|
||||
iconSize: 16.0,
|
||||
child: Text(
|
||||
activity.learningObjective,
|
||||
),
|
||||
if (showInstructions) ...[
|
||||
Row(
|
||||
spacing: 8.0,
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
Text(
|
||||
activity.req.mode,
|
||||
style: theme.textTheme.bodyMedium,
|
||||
),
|
||||
),
|
||||
ActivitySessionDetailsRow(
|
||||
icon: Symbols.steps,
|
||||
iconSize: 16.0,
|
||||
child: Html(
|
||||
data: markdown(activity.instructions),
|
||||
style: {
|
||||
"body": Style(
|
||||
margin: Margins.all(0),
|
||||
padding: HtmlPaddings.all(0),
|
||||
fontSize: FontSize(
|
||||
theme.textTheme.bodyMedium!.fontSize!,
|
||||
),
|
||||
Row(
|
||||
spacing: 4.0,
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
const Icon(Icons.school, size: 12.0),
|
||||
Text(
|
||||
activity.req.cefrLevel.string,
|
||||
style: theme.textTheme.bodyMedium,
|
||||
),
|
||||
},
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
ActivitySessionDetailsRow(
|
||||
icon: Symbols.target,
|
||||
iconSize: 16.0,
|
||||
child: Text(
|
||||
activity.learningObjective,
|
||||
style: theme.textTheme.bodyMedium,
|
||||
),
|
||||
ActivitySessionDetailsRow(
|
||||
icon: Symbols.dictionary,
|
||||
iconSize: 16.0,
|
||||
child: ActivityVocabWidget(
|
||||
key: ValueKey(
|
||||
"activity-summary-${activity.activityId}",
|
||||
),
|
||||
ActivitySessionDetailsRow(
|
||||
icon: Symbols.steps,
|
||||
iconSize: 16.0,
|
||||
child: Html(
|
||||
data: markdown(activity.instructions),
|
||||
style: {
|
||||
"body": Style(
|
||||
margin: Margins.all(0),
|
||||
padding: HtmlPaddings.all(0),
|
||||
fontSize: FontSize(
|
||||
theme.textTheme.bodyMedium!.fontSize!,
|
||||
),
|
||||
),
|
||||
vocab: activity.vocab,
|
||||
langCode: activity.req.targetLanguage,
|
||||
targetId: "activity-summary-vocab",
|
||||
usedVocab: usedVocab,
|
||||
activityLangCode: activity.req.targetLanguage,
|
||||
),
|
||||
},
|
||||
),
|
||||
],
|
||||
),
|
||||
ActivitySessionDetailsRow(
|
||||
icon: Symbols.dictionary,
|
||||
iconSize: 16.0,
|
||||
child: ActivityVocabWidget(
|
||||
key: ValueKey(
|
||||
"activity-summary-${activity.activityId}",
|
||||
),
|
||||
vocab: activity.vocab,
|
||||
langCode: activity.req.targetLanguage,
|
||||
targetId: "activity-summary-vocab",
|
||||
usedVocab: usedVocab,
|
||||
activityLangCode: activity.req.targetLanguage,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue