我在网格视图中添加了一个标题。标题正在滚动,但在触摸网格视图时。它没有滚动。我想滚动标题和网格视图。我用过SingleChildScrollView和Expanded。如何解决请帮帮我。
我的代码如下所示
Widget ItemGridview() {
return Container(
color: Colors.white,
padding: EdgeInsets.all(10),
child: Column(
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
new Expanded(
child: SingleChildScrollView(
child: Column(
children: <Widget>[
new Text(
'Items of products',
style: TextStyle(fontWeight: FontWeight.w700, fontSize: 18.0),
textAlign: TextAlign.left,
),
GridView.count(
shrinkWrap: true,
primary: true,
padding: EdgeInsets.only(top:15.0),
crossAxisCount: 3,
childAspectRatio: 0.60, //1.0
mainAxisSpacing: 0.2, //1.0
crossAxisSpacing: 4.0, //1.0
children: createCategoryList(),
),
],
),
)
)
]
),
);
}
Run Code Online (Sandbox Code Playgroud)
在我的代码中,产品项是标题。
List<Widget> createCategoryList() {
List<Widget> …Run Code Online (Sandbox Code Playgroud) 我正在使用 frebase 开发 flutter ios 应用程序。我想使用短信身份验证登录应用程序。当我运行该应用程序时,它正在从数据库中获取详细信息。但它显示了应用程序启动时间的错误。错误是
- [Firebase/Core][I-COR000004] App with name __FIRAPP_DEFAULT does not exist.
在 xcode 中,我启用了已启用的“推送通知”和“远程通知”以删除 OTP 验证中的验证码。但是如果我禁用了“推送通知”和“远程通知”,它将显示验证码。并在验证验证码后发送短信。
- [Firebase/Core][I-COR000004] App with name __FIRAPP_DEFAULT does not exist.在应用程序打开。我在下面给出了 main.dart 文件
final FirebaseApp app = await FirebaseApp.configure(
name: myApp,
options: const FirebaseOptions(
googleAppID: '1:57979xxxxx:ios:c9d1031xx',
gcmSenderID: '58989xxxxx6',
apiKey: 'AIzaSyANwavsssasxxxxxxxxxxxKBNF7I',
projectID: 'myApp',
),
);
Run Code Online (Sandbox Code Playgroud)
短信验证码是
await firebaseAuth.verifyPhoneNumber(
phoneNumber: "+91"+phoneNumber,
timeout: Duration(seconds: timeOut),
codeAutoRetrievalTimeout: autoRetrieve,
codeSent: smsCodeSent,
verificationCompleted: verifiedSuccess,
verificationFailed: veriFailed);
final PhoneVerificationFailed veriFailed = (AuthException exception) {
print("ERROR");
print('${exception.message}');
throw new …Run Code Online (Sandbox Code Playgroud) 在我扑扑的应用程序中。我正在使用google_maps_plugin。链接为https://github.com/flutter/plugins/tree/master/packages/google_maps_flutter。我想在拖动地图后将标记固定在地图中心而不移动。我希望它像http://jsfiddle.net/UuDA6/
在我的代码中我MarkerOption用来放置标记。
MarkerOptions options = new MarkerOptions(
alpha: 1.0,
anchor: Offset(0.5, 1.0),
consumeTapEvents: false,
draggable: false,
flat: false,
icon: BitmapDescriptor.defaultMarker,
infoWindowAnchor: Offset(0.5, 0.0),
infoWindowText: InfoWindowText.noText,
position: LatLng(17.411439, 78.5486697),
rotation: 0.0,
visible: true,
zIndex: 0.0,
);
Run Code Online (Sandbox Code Playgroud)
但是在position我想知道如何给地图的中心。
如果有任何想法,请分享。