diff --git a/circle_app/android/build.gradle b/circle_app/android/build.gradle index 58a8c74..06d50f3 100644 --- a/circle_app/android/build.gradle +++ b/circle_app/android/build.gradle @@ -15,6 +15,11 @@ allprojects { repositories { google() mavenCentral() + maven { url "https://storage.googleapis.com/download.flutter.io" } + maven { url "https://jitpack.io" } + maven { url 'https://mvn.getui.com/nexus/content/repositories/releases' } + maven { url "https://mirrors.tencent.com/nexus/repository/maven-public/" } + maven { url 'https://repo1.maven.org/maven2/' } } } @@ -26,6 +31,6 @@ subprojects { project.evaluationDependsOn(':app') } -task clean(type: Delete) { +tasks.register("clean", Delete) { delete rootProject.buildDir } diff --git a/circle_app/assets/images/base/home_back.png b/circle_app/assets/images/base/home_back.png new file mode 100644 index 0000000..1de51b9 Binary files /dev/null and b/circle_app/assets/images/base/home_back.png differ diff --git a/circle_app/lib/app/home/view.dart b/circle_app/lib/app/home/view.dart index 2a26179..c78fae9 100644 --- a/circle_app/lib/app/home/view.dart +++ b/circle_app/lib/app/home/view.dart @@ -1,3 +1,4 @@ +import 'package:circle_app/util/util.dart'; import 'package:flutter/material.dart'; import 'package:get/get.dart'; @@ -12,8 +13,15 @@ class HomePage extends StatelessWidget { @override Widget build(BuildContext context) { return Container( - color: Colors.red, + decoration: BoxDecoration( + image: DecorationImage( + image: AssetImage(getBaseImage("home_back")), + fit: BoxFit.fill, + ), + ), ); } + + } diff --git a/circle_app/pubspec.yaml b/circle_app/pubspec.yaml index d6e648c..61eafc2 100644 --- a/circle_app/pubspec.yaml +++ b/circle_app/pubspec.yaml @@ -63,6 +63,11 @@ flutter: # To add assets to your application, add an assets section, like this: assets: - assets/images/ + - assets/images/home/ + - assets/images/base/ + - assets/images/login/ + - assets/images/navigator/ + - assets/images/tabbar/ # - images/a_dot_ham.jpeg # An image asset can refer to one or more resolution-specific "variants", see