# tu_home **Repository Path**: yunwolf/tu_home ## Basic Information - **Project Name**: tu_home - **Description**: 后台管理系统手机版 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-04-12 - **Last Updated**: 2024-04-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # tu_home 兔管家 ## 引入的包 tdesign_flutter: ^0.1.0 ## flutter 技术点 ### DefaultTabController ```dart DefaultTabController(length: 5, child: Scaffold( appBar: AppBar( backgroundColor: Theme.of(context).colorScheme.onSecondary, title: Text(widget.title), bottom: const TabBar( tabs: [ Tab(text:'订单' ,icon: Icon(Icons.home_repair_service,color: Colors.blue,)), Tab(text:'顾客' ,icon: Icon(Icons.people,color: Colors.blue,)), Tab(text:'项目' ,icon: Icon(Icons.store,color: Colors.blue,)), Tab(text:'SKU' ,icon: Icon(Icons.gpp_good_sharp,color: Colors.blue,)), Tab(text:'门店' ,icon: Icon(Icons.store,color: Colors.blue,)), ], ), ), body: TabBarView( children: [ ListView(children: [ Container(child: Text('data'),), Container(child: Text('data'),), Container(child: Text('data'),), Container(child: Text('data'),), Container(child: Text('data'),), ]), Icon(Icons.directions_transit), Icon(Icons.directions_bike), Icon(Icons.directions_bike), Icon(Icons.directions_bike), ], ), )); ``` ## 问题汇总 ### Running Gradle task 'assembleDebug'... 修改如下配置文件 android->build.gradle ``` buildscript { ext.kotlin_version = '1.7.10' repositories { maven { url 'https://maven.aliyun.com/repository/google' } maven { url 'https://maven.aliyun.com/repository/jcenter' } maven { url 'https://maven.aliyun.com/nexus/content/groups/public' } } dependencies { classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } } allprojects { repositories { google() mavenCentral() } } rootProject.buildDir = '../build' subprojects { project.buildDir = "${rootProject.buildDir}/${project.name}" } subprojects { project.evaluationDependsOn(':app') } tasks.register("clean", Delete) { delete rootProject.buildDir } ```