我在堆栈中有两个小部件。下面将对此进行演示。
第二个小部件是一个按钮,它位于具有负 Y 轴的定位小部件中。
问题是溢出了,无法点击。我有什么办法可以解决这个问题吗?
Stack(
fit: StackFit.expand,
overflow: Overflow.visible,
clipBehavior: Clip.none,
alignment: AlignmentDirectional.topCenter,
children: [
ClipRRect(
borderRadius: BorderRadius.all(Radius.circular(29)),
child: ClipPath(
clipper: NavbarClipper(),
child: Container(
color: Colors.white,
),
),
),
Positioned(
top: -30,
child: Container(
width: context.dynamicHeight(0.16),
height: context.dynamicWidth(0.16),
child: FittedBox(
child: FloatingActionButton(
onPressed: () {},
backgroundColor: Colors.orange,
child: Icon(Icons.ac_unit),
),
),
),
)
],
)
Run Code Online (Sandbox Code Playgroud)
谢谢。
我是React Native开发的新手。我开发了一个小项目,想要发布APK。不,我去发布构建堆栈。谁能帮我?谢谢。
错误是
没有这样的属性:类的ABI:org.gradle.api.tasks.OutputFile org.gradle.api.ProjectConfigurationException:配置项目':app'时发生问题原因:groovy.lang.MissingPropertyException:无此类属性:类的ABI :org.gradle.api.tasks.OutputFile
build.gradle(应用程序)
apply plugin: "com.android.application"
project.ext.react = [
resourcesDirRelease: "$buildDir/intermediates/res/merged/release",
]
apply from: "../../node_modules/react-native/react.gradle"
def enableSeparateBuildPerCPUArchitecture = false
/**
* Run Proguard to shrink the Java bytecode in release builds.
*/
def enableProguardInReleaseBuilds = false
android {
compileSdkVersion rootProject.ext.compileSdkVersion
defaultConfig {
applicationId "com.ninjakod.vehiclevalue"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"
ndk {
abiFilters "armeabi-v7a", "x86"
}
}
splits {
abi {
reset()
enable enableSeparateBuildPerCPUArchitecture
universalApk false // If true, also generate a universal APK …Run Code Online (Sandbox Code Playgroud)