在我的应用程序中,我使用来自以下内容的原生广告:
firebase_admob, native_admob_controller, flutter_native_admob。
child: NativeAdmob(
// Your ad unit id
adUnitID: adsAndroidID,
controller: _nativeAdController,
// Don't show loading widget when in loading state
),
Run Code Online (Sandbox Code Playgroud)
我现在如何添加此链接下描述的信息https://developers.google.com/admob/ump/android/quick-start?
我尝试使用https://pub.dev/packages/gdpr_dialog运行,但这只是英文版本。
我有一个列表,当您单击 中的按钮时会出现该列表BottomNavigationBarItem。这是showMenu带有下面代码的列表。
但是我怎样才能得到这个列表中选择的值呢?
showMenu<int>(
context: context,
position: RelativeRect.fromLTRB(1000.0, 600.0, 0.0, 0.0),
items: <PopupMenuItem<int>>[
new PopupMenuItem<int>(child: const Text('Top 1'), value: 1),
new PopupMenuItem<int>(child: const Text('Top 2'), value: 2),
new PopupMenuItem<int>(child: const Text('Top 3'), value: 3),
new PopupMenuItem<int>(child: const Text('Top 4'), value: 4),
],
elevation: 8.0,
);
Run Code Online (Sandbox Code Playgroud)