24 lines
599 B
Dart
24 lines
599 B
Dart
import 'package:refilc/models/supporter.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
class SupporterTile extends StatelessWidget {
|
|
const SupporterTile({super.key, required this.supporter});
|
|
|
|
final Supporter supporter;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return ListTile(
|
|
contentPadding: EdgeInsets.zero,
|
|
leading: CircleAvatar(
|
|
backgroundImage: NetworkImage(supporter.avatar),
|
|
),
|
|
title: Text(
|
|
supporter.name,
|
|
style: const TextStyle(fontWeight: FontWeight.bold),
|
|
),
|
|
subtitle: Text(supporter.comment),
|
|
);
|
|
}
|
|
}
|