first commit

This commit is contained in:
Leandro 2024-05-17 23:46:30 +02:00
commit 39e38f931f
382 changed files with 520450 additions and 0 deletions

View file

@ -0,0 +1,13 @@
import 'package:flutter/material.dart';
class Overviewcard extends StatelessWidget {
Overviewcard(this.temperatur, {super.key});
Color mainColor = Colors.red;
int temperatur = 15;
@override
Widget build(BuildContext context) {
return Placeholder();
}
}

View file

@ -0,0 +1,55 @@
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,
),
)
],
));
}
}