上传了一张背景图

This commit is contained in:
YangYuhao 2023-06-12 12:08:48 +08:00
parent f726dc6c8f
commit c19793349d
4 changed files with 20 additions and 2 deletions

View File

@ -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
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

View File

@ -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,
),
),
);
}
}

View File

@ -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