我在我的应用程序中使用 admob 和 facebook 投放广告,并且已完成,但我想检查它,所以我添加了中介测试套件依赖项
implementation 'com.google.android.ads:mediation-test-suite:2.0.0'
Run Code Online (Sandbox Code Playgroud)
并且该应用程序无法构建它显示
Duplicate class com.google.android.flexbox.AlignContent found in modules jetified-flexbox-1.1.1-runtime (com.google.android:flexbox:1.1.1) and jetified-flexbox-3.0.0-runtime (com.google.android.flexbox:flexbox:3.0.0)
Duplicate class com.google.android.flexbox.AlignItems found in modules jetified-flexbox-1.1.1-runtime (com.google.android:flexbox:1.1.1) and jetified-flexbox-3.0.0-runtime (com.google.android.flexbox:flexbox:3.0.0)
Run Code Online (Sandbox Code Playgroud)
还有更多 Flexbox 的重复类
我的admob版本
implementation 'com.google.android.gms:play-services-ads:20.4.0'
Run Code Online (Sandbox Code Playgroud) 我想在 Flutter web 中用鼠标滚轮水平滚动 SingleChildScrollView() ,但 SingleChildScrollView() 位于 ListView() 内部,当我尝试用鼠标滚轮滚动它时,它会滚动 ListView() 。
这是我的代码
child: ListView(
children: [
Container(
width: 420.0,
child: Row(
children: [
Expanded(
child: Text(
'Popular Search',
),
),
Expanded(
flex: 3,
child: SingleChildScrollView(
scrollDirection: Axis.horizontal,
child: Row(
children: categoriesList.map((e) {
return Container(
decoration: BoxDecoration(
borderRadius:
BorderRadius.all(Radius.circular(12.0)),
color: Colors.white,
),
child: Text(
e,
style: TextStyle(
fontSize: 13.0,
),
),
);
}).toList(),
),
),
)
],
),
),
],
),
Run Code Online (Sandbox Code Playgroud)