2024-04-25 21:54:40 +00:00
|
|
|
import 'package:flutter/material.dart';
|
2024-05-23 00:37:06 +00:00
|
|
|
import '../utilities/text_styles.dart';
|
|
|
|
import 'conditional_parent.dart';
|
|
|
|
import 'rounded_white_container.dart';
|
2024-04-25 21:54:40 +00:00
|
|
|
|
|
|
|
class FrostStepUserSteps extends StatelessWidget {
|
|
|
|
const FrostStepUserSteps({super.key, required this.userSteps});
|
|
|
|
|
|
|
|
final List<String> userSteps;
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return RoundedWhiteContainer(
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
for (int i = 0; i < userSteps.length; i++)
|
2024-05-02 17:32:02 +00:00
|
|
|
ConditionalParent(
|
|
|
|
condition: i > 0,
|
|
|
|
builder: (child) => Padding(
|
|
|
|
padding: const EdgeInsets.only(top: 4),
|
|
|
|
child: child,
|
|
|
|
),
|
|
|
|
child: Row(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
"${i + 1}.",
|
2024-04-25 21:54:40 +00:00
|
|
|
style: STextStyles.w500_12(context),
|
|
|
|
),
|
2024-05-02 17:32:02 +00:00
|
|
|
const SizedBox(
|
|
|
|
width: 4,
|
|
|
|
),
|
|
|
|
Expanded(
|
|
|
|
child: Text(
|
|
|
|
userSteps[i],
|
|
|
|
style: STextStyles.w500_12(context),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
2024-04-25 21:54:40 +00:00
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|