我正在使用 vscode 并安装了 flutter 插件、Dart 插件等,但仍然找不到我的设备,我发现问题如下
[flutter] flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[?] Flutter (Channel stable, v1.7.8+hotfix.3, on Microsoft Windows
[Version 10.0.18362.239], locale en-IN)
[X] Android toolchain - develop for Android devices
X Unable to locate Android SDK.
Install Android Studio from:
https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK components.
(or visit https://flutter.dev/setup/#android-setup for detailed instructions).
If the Android SDK has been installed to a custom location, …Run Code Online (Sandbox Code Playgroud) mobile-application dart android-studio visual-studio-code flutter
我想在可滚动条应用程序小部件中添加这个固定的底部导航栏,有什么方法可以做到这一点或有任何替代方法可以做到这一点
BottomNavigationBar(
items: const <BottomNavigationBarItem>[
BottomNavigationBarItem(
icon: Icon(Icons.home),
title: Text('Home'),
),
BottomNavigationBarItem(
icon: Icon(Icons.card_giftcard),
title: Text('Deals'),
),
BottomNavigationBarItem(
icon: Icon(Icons.favorite),
title: Text('Favourites'),
),
BottomNavigationBarItem(
icon: Icon(Icons.portrait),
title: Text('Profile'),
),
],
)
Run Code Online (Sandbox Code Playgroud)