forked from Nexus/nexus
Now this feature is stable, we should use it. I might have missed some usecases, but these can be added in future commits.
19 lines
520 B
Dart
19 lines
520 B
Dart
import "package:flutter/material.dart";
|
|
|
|
class GenericEventRenderer extends StatelessWidget {
|
|
final IconData icon;
|
|
final List<Widget> children;
|
|
const GenericEventRenderer(this.icon, this.children, {super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) => Padding(
|
|
padding: .only(bottom: 8),
|
|
child: Row(
|
|
spacing: 8,
|
|
children: [
|
|
Padding(padding: .symmetric(horizontal: 4), child: Icon(icon)),
|
|
Expanded(child: Wrap(spacing: 4, children: children)),
|
|
],
|
|
),
|
|
);
|
|
}
|