First data card

This commit is contained in:
Tyler Wilcox 2025-05-14 22:43:54 -04:00
parent 959970ed09
commit 5d935db33b
5 changed files with 71 additions and 20 deletions

View File

@ -35,4 +35,3 @@ class MyApp extends StatelessWidget {
);
}
}

View File

@ -22,14 +22,7 @@ class Dashboard extends StatelessWidget {
// the App.build method, and use it to set our appbar title.
title: Text("Helm"),
),
body: Container(
child: Column(
children: <Widget> [
TextCard(cardTitle: 'My Card')
]
)
)
body: Column(children: <Widget>[TextCard(cardTitle: 'My Card')]),
);
}
}

View File

@ -1,6 +1,6 @@
import 'package:flutter/material.dart';
class TextCard extends StatefulWidget{
class TextCard extends StatefulWidget {
const TextCard({super.key, required this.cardTitle});
final String cardTitle;
@ -9,18 +9,20 @@ class TextCard extends StatefulWidget{
State<TextCard> createState() => _TextCardState();
}
class _TextCardState extends State<TextCard>{
class _TextCardState extends State<TextCard> {
@override
Widget build(BuildContext context){
Widget build(BuildContext context) {
return Card(
child: Padding(
padding: EdgeInsets.all(10),
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget> [
children: <Widget>[
Text(widget.cardTitle),
SizedBox(width: 100, height: 10),
Text("THE COOL TEXT")
]
Text("THE COOL TEXT"),
],
),
),
);
}

View File

@ -41,6 +41,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.19.1"
crypto:
dependency: transitive
description:
name: crypto
sha256: "1e445881f28f22d6140f181e07737b22f1e099a5e1ff94b0af2f9e4a463f4855"
url: "https://pub.dev"
source: hosted
version: "3.0.6"
cupertino_icons:
dependency: "direct main"
description:
@ -123,6 +131,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "0.11.1"
messagepack:
dependency: transitive
description:
name: messagepack
sha256: "11e69dd79ba84ba901261558881b42ac8b24155a7846a344875a32c8b0866d71"
url: "https://pub.dev"
source: hosted
version: "0.2.1"
meta:
dependency: transitive
description:
@ -131,6 +147,22 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.16.0"
msgpack_dart:
dependency: transitive
description:
name: msgpack_dart
sha256: c2d235ed01f364719b5296aecf43ac330f0d7bc865fa134d0d7910a40454dffb
url: "https://pub.dev"
source: hosted
version: "1.0.1"
nt4:
dependency: "direct main"
description:
name: nt4
sha256: "0dac7b51c3487970ad149a294a30fa1b5a8b668132e04855fdee260c87a30122"
url: "https://pub.dev"
source: hosted
version: "1.3.3"
path:
dependency: transitive
description:
@ -192,6 +224,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "0.7.4"
typed_data:
dependency: transitive
description:
name: typed_data
sha256: f9049c039ebfeb4cf7a7104a675823cd72dba8297f264b6637062516699fa006
url: "https://pub.dev"
source: hosted
version: "1.4.0"
vector_math:
dependency: transitive
description:
@ -208,6 +248,22 @@ packages:
url: "https://pub.dev"
source: hosted
version: "14.3.1"
web:
dependency: transitive
description:
name: web
sha256: "97da13628db363c635202ad97068d47c5b8aa555808e7a9411963c533b449b27"
url: "https://pub.dev"
source: hosted
version: "0.5.1"
web_socket_channel:
dependency: transitive
description:
name: web_socket_channel
sha256: "58c6666b342a38816b2e7e50ed0f1e261959630becd4c879c4f26bfa14aa5a42"
url: "https://pub.dev"
source: hosted
version: "2.4.5"
sdks:
dart: ">=3.7.0 <4.0.0"
flutter: ">=3.18.0-18.0.pre.54"

View File

@ -34,6 +34,7 @@ dependencies:
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.8
nt4: ^1.3.3
dev_dependencies:
flutter_test: