2 次代码提交 1fd4689844 ... 79c19abbc9

作者 SHA1 备注 提交日期
  juan 79c19abbc9 augment init 1 月之前
  juan b3dd850b0a needs polishing the sides 1 月之前
共有 2 个文件被更改,包括 35 次插入1 次删除
  1. 6 1
      lib/api_service.dart
  2. 29 0
      lib/augment.dart

+ 6 - 1
lib/api_service.dart

@@ -425,13 +425,18 @@ class _EmailViewState extends State<EmailView> {
           Row(
             children: [
               Text(
-                widget.name,
+                'from ${widget.name}',
                 style: TextStyle(fontSize: 18),
               ),
               Text(
                 '<${widget.from}>',
                 style: TextStyle(fontSize: 18),
               ),
+              Spacer(),
+              Text(
+                '${widget.date}',
+                textAlign: TextAlign.right,
+              )
             ],
           ),
           // TODO: make a case where if one of these is the user's email it just says me :)))))

+ 29 - 0
lib/augment.dart

@@ -0,0 +1,29 @@
+import 'package:flutter/material.dart';
+import 'package:http/http.dart' as http;
+import 'dart:convert';
+import 'dart:ui_web' as ui;
+import 'dart:html' as html;
+
+class EmailToolbar extends StatelessWidget {
+  final VoidCallback onButtonPressed;
+
+  const EmailToolbar({Key? key, required this.onButtonPressed}) : super(key: key);
+
+  @override
+  Widget build(BuildContext context) {
+    return Row(
+      children: [
+        ElevatedButton(
+          onPressed: onButtonPressed,
+          child: Text('Home'),
+        ),
+        SizedBox(width: 8),
+        ElevatedButton(
+          onPressed: onButtonPressed,
+          child: Text('Reload'),
+        ),
+      
+      ],
+    );
+  }
+}