diff --git a/lib/main.dart b/lib/main.dart index 54f6cf1..a5dbbb0 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -35,4 +35,3 @@ class MyApp extends StatelessWidget { ); } } - diff --git a/lib/pages/dashboard.dart b/lib/pages/dashboard.dart index 1c157e4..13aee98 100644 --- a/lib/pages/dashboard.dart +++ b/lib/pages/dashboard.dart @@ -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: [ - TextCard(cardTitle: 'My Card') - ] - ) - ) + body: Column(children: [TextCard(cardTitle: 'My Card')]), ); } } - diff --git a/lib/widgets/text_card.dart b/lib/widgets/text_card.dart index 8d635c9..f2d9ef3 100644 --- a/lib/widgets/text_card.dart +++ b/lib/widgets/text_card.dart @@ -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 createState() => _TextCardState(); } -class _TextCardState extends State{ - +class _TextCardState extends State { @override - Widget build(BuildContext context){ + Widget build(BuildContext context) { return Card( - child: Column( - crossAxisAlignment: CrossAxisAlignment.center, - children: [ - Text(widget.cardTitle), - SizedBox(width: 100, height: 10), - Text("THE COOL TEXT") - ] + child: Padding( + padding: EdgeInsets.all(10), + child: Column( + crossAxisAlignment: CrossAxisAlignment.center, + children: [ + Text(widget.cardTitle), + SizedBox(width: 100, height: 10), + Text("THE COOL TEXT"), + ], + ), ), ); } diff --git a/pubspec.lock b/pubspec.lock index c2c57f7..42150ae 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -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" diff --git a/pubspec.yaml b/pubspec.yaml index b5d9e06..ea1a001 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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: