55 lines
1.4 KiB
Dart
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,
|
|
),
|
|
)
|
|
],
|
|
));
|
|
}
|
|
}
|