liuyuqi-dellpc 1 year ago
parent
commit
eca0576ced
6 changed files with 20 additions and 3 deletions
  1. 2 1
      README.md
  2. 1 1
      android/build.gradle
  3. 1 1
      lib/main.dart
  4. 3 0
      lib/models/config.dart
  5. 4 0
      lib/models/user_model.dart
  6. 9 0
      lib/utils/str_util.dart

+ 2 - 1
README.md

@@ -19,4 +19,5 @@ flutter build apk
 
 ## Reference
 
-[](https://developers.google.com/maps/flutter-plugin/map-with-marker)
+* [map-with-marker](https://developers.google.com/maps/flutter-plugin/map-with-marker)
+* [google_maps samples](https://github.com/flutter/samples/blob/main/google_maps)

+ 1 - 1
android/build.gradle

@@ -6,7 +6,7 @@ buildscript {
     }
 
     dependencies {
-        classpath 'com.android.tools.build:gradle:7.2.'
+        classpath 'com.android.tools.build:gradle:7.2.2'
         classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
     }
     plugins {

+ 1 - 1
lib/main.dart

@@ -15,7 +15,7 @@ class MyApp extends StatelessWidget {
   @override
   Widget build(BuildContext context) {
     return MaterialApp(
-      title: 'Flutter Demo',
+      title: 'Google Map',
       debugShowCheckedModeBanner: false,
       theme: ThemeData(
    

+ 3 - 0
lib/models/config.dart

@@ -0,0 +1,3 @@
+class Config {
+  
+}

+ 4 - 0
lib/models/user_model.dart

@@ -0,0 +1,4 @@
+class UserModel {
+  String name = "";
+  int userId = 0;
+}

+ 9 - 0
lib/utils/str_util.dart

@@ -0,0 +1,9 @@
+/// Description: 字符串函数
+/// Time       : 07/06/2023 Thursday
+/// Author     : liuyuqi.gov@msn.cn
+class StrUtil {
+  /// is email
+  bool isEmail(String email) {
+    return RegExp(r"^[a-zA-Z0-9.]+@[a-zA-Z0-9]+\.[a-zA-Z]+").hasMatch(email);
+  }
+}