尝试实现 android 13 或“提拉米苏”的通知权限,但未能获得该权限的导入。
目前:目标SDK版本是32 编译SDK版本是32
我也在清单中声明了它,如下所示:
<uses-permission android:name="android.permission.POST_NOTIFICATIONS"
Run Code Online (Sandbox Code Playgroud)
导入我正在使用:
import android.Manifest
Run Code Online (Sandbox Code Playgroud)
下面是我的代码:
我面临的问题=>第一个按钮也更新第二个按钮状态。
但它应该以不同的方式工作:
首先仅使用第一个,
第二个仅使用第二个
我只想实现第二个按钮的状态独立于其他按钮我需要更新什么谢谢,任何建议对我来说都会很棒
class _LinearProgressBar extends State<LinearProgressBar> {
bool loadingLinear = false;
bool loadingCircular = false;
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text("CheckBox and Radio Button Stateful"),
),
body: Center(
child: Column(
children: [
Container(
child: loadingLinear
? const LinearProgressIndicator()
: const Text("Click to download "),
),
//Here is my first button which reflects the second button state as well
ElevatedButton(
style: ElevatedButton.styleFrom(
primary: Colors.red, …Run Code Online (Sandbox Code Playgroud)