From 355fe96b2a4c7821256d9e8828d2cb9539904878 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期四, 05 五月 2022 19:29:16 +0800
Subject: [PATCH] 功能完善

---
 flutter_module/lib/ui/widget/base_ui.dart |   27 ++++++++++++++++++++++++++-
 1 files changed, 26 insertions(+), 1 deletions(-)

diff --git a/flutter_module/lib/ui/widget/base_ui.dart b/flutter_module/lib/ui/widget/base_ui.dart
index 9ccb217..ef26338 100644
--- a/flutter_module/lib/ui/widget/base_ui.dart
+++ b/flutter_module/lib/ui/widget/base_ui.dart
@@ -1,2 +1,27 @@
 import 'package:flutter/cupertino.dart';
-import 'package:pull_to_refresh/pull_to_refresh.dart';
+import 'package:flutter/material.dart';
+import 'package:marquee/marquee.dart';
+
+Widget NotifyWidget(String text, {required Color textColor, Color? bgColor,double? paddingLeft,double? paddingRight }) {
+  return Container(
+    height: 30,
+    alignment: Alignment.center,
+    color: bgColor ?? Colors.transparent,
+    padding:  EdgeInsets.only(left: paddingLeft ?? 10, right: paddingRight ?? 10, top: 5, bottom: 5),
+    child: Row(
+      children: [
+        Icon(
+          Icons.volume_up_outlined,
+          color: textColor,
+          size: 15,
+        ),
+        SizedBox(width: 5,),
+        Expanded(
+            child: Marquee(
+          text: text,
+          style: TextStyle(fontSize: 12, color: textColor),
+        ))
+      ],
+    ),
+  );
+}

--
Gitblit v1.8.0