在我重置电脑之前,我的应用程序运行良好,重置后我下载了所有文件并成功安装。但应用程序现在无法工作,显示一些错误,我不知道背后的原因是什么。GradleException 显示红色是任何错误或如何解决它,请解释我完全是颤振新手。
\n\n我已经在尝试添加 grdla 文件“GRADLE_HOME”的环境变量。
\n\ndef localPropertiesFile = rootProject.file(\'local.properties\')\nif (localPropertiesFile.exists()) {\n localPropertiesFile.withReader(\'UTF-8\') { reader ->\n localProperties.load(reader)\n }\n}\n\ndef flutterRoot = localProperties.getProperty(\'flutter.sdk\')\nif (flutterRoot == null) {\n throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")\n}\n\ndef flutterVersionCode = localProperties.getProperty(\'flutter.versionCode\')\nif (flutterVersionCode == null) {\n flutterVersionCode = \'1\'\n}\ndef flutterVersionName = localProperties.getProperty(\'flutter.versionName\')\nif (flutterVersionName == null) {\n flutterVersionName = \'1.0\'\n}\n\napply plugin: \'com.android.application\'\napply from: "C:/src/flutter/packages/flutter_tools/gradle/flutter.gradle"\n\nandroid {\n compileSdkVersion 28\n\n lintOptions {\n disable \'InvalidPackage\'\n }\n\n defaultConfig {\n // TODO: Specify your own unique …Run Code Online (Sandbox Code Playgroud) 我无法在颤动中使用弯曲导航栏,当我滑动屏幕时,弯曲导航栏的按钮也会移动,但当我点击弯曲导航栏的按钮时,什么也没有发生。我认为onTap()无法正常工作。点击按钮时如何导航页面?这是我的程序的代码=>
static final String id = 'profile_page';
@override
_PagesState createState() => _PagesState();
}
class _PagesState extends State<Pages> {
PageController _pageController;
int _Page=0;
@override
void initState() {
super.initState();
_pageController = PageController();
}
@override
Widget build(BuildContext context) {
return Scaffold(
body: PageView(
controller: _pageController,
children: <Widget>[
Search(),
Trending(),
Friends(),
Profile(),
],
onPageChanged: (int index) {
setState(() {
_pageController.jumpToPage(index);
});
}
),
bottomNavigationBar: CurvedNavigationBar(
animationCurve: Curves.easeInOutBack,
index:3,
items: <Widget>[
Icon(Icons.search, size: 30, color: Colors.white, ),
Icon(Icons.trending_up, size: 30, color: Colors.white),
Icon(Icons.group, …Run Code Online (Sandbox Code Playgroud) 我需要一种方法来搜索附近的人并向他们发送推送通知。似乎我不能为此使用主题,所以可能需要一种查询用户的方法?
firebase flutter google-cloud-functions firebase-cloud-messaging google-cloud-firestore