You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
579 B
Dart
30 lines
579 B
Dart
|
8 months ago
|
import 'package:flutter/material.dart';
|
||
|
|
|
||
|
|
class ActivitySuggestionCardRow extends StatelessWidget {
|
||
|
|
final IconData icon;
|
||
|
|
final Widget child;
|
||
|
|
|
||
|
|
const ActivitySuggestionCardRow({
|
||
|
|
required this.icon,
|
||
|
|
required this.child,
|
||
|
|
super.key,
|
||
|
|
});
|
||
|
|
|
||
|
|
@override
|
||
|
|
Widget build(BuildContext context) {
|
||
|
|
return Padding(
|
||
|
|
padding: const EdgeInsets.symmetric(vertical: 4.0),
|
||
|
|
child: Row(
|
||
|
|
spacing: 4.0,
|
||
|
|
children: [
|
||
|
|
Icon(
|
||
|
|
icon,
|
||
|
|
size: 12.0,
|
||
|
|
),
|
||
|
|
Expanded(child: child),
|
||
|
|
],
|
||
|
|
),
|
||
|
|
);
|
||
|
|
}
|
||
|
|
}
|