first commit
This commit is contained in:
commit
39e38f931f
382 changed files with 520450 additions and 0 deletions
13
lib/widgets/cards/overview_card.dart
Normal file
13
lib/widgets/cards/overview_card.dart
Normal 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();
|
||||
}
|
||||
}
|
||||
55
lib/widgets/cards/wool_card.dart
Normal file
55
lib/widgets/cards/wool_card.dart
Normal 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,
|
||||
),
|
||||
)
|
||||
],
|
||||
));
|
||||
}
|
||||
}
|
||||
Reference in a new issue