This repository has been archived on 2025-06-12. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
Temperaturdecke/lib/widgets/cards/wool_card.dart
2024-05-17 23:46:30 +02:00

55 lines
1.4 KiB
Dart

import 'package:flutter/material.dart';
import 'package:hexcolor/hexcolor.dart';
import 'package:temperaturdecke/screens/wool_modal.dart';
import 'package:temperaturdecke/widgets/custom_card.dart';
class Woolcard extends StatelessWidget {
Woolcard(this.id, this.manufacture, this.title, this.color, {super.key});
int id;
String manufacture;
String title;
String color;
@override
Widget build(BuildContext context) {
return CustomCard(Row(
mainAxisSize: MainAxisSize.max,
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Row(
children: [
Container(
height: 70,
width: 30,
color: HexColor(color),
),
Padding(
padding: const EdgeInsets.all(10.0),
child: Column(
children: [
Text(title),
Text(manufacture),
],
),
),
],
),
Padding(
padding: const EdgeInsets.all(10.0),
child: IconButton(
onPressed: () {
showModalBottomSheet(
context: context,
builder: (context) {
return WoolModal(id);
},
);
},
icon: Icon(Icons.more_vert),
alignment: Alignment.centerRight,
),
)
],
));
}
}