我不熟悉flutter,正在创建登录表单,为此我使用了TextField并添加了前缀图标,但在文本字段之间(用户ID和Pin)以及前缀图标之前,我得到了一些额外的空格。我也尝试了InputDecorationTheme,但是没有用。
请让我知道如何删除或减少空间。
下面是我的代码:
TextField(
maxLength: 8,
keyboardType: TextInputType.number,
decoration: InputDecoration(
hintText: hint,
hintStyle: TextStyle(fontSize: 12.0),
prefixIcon: Icon(icon),
counterText: '',
),
)
Run Code Online (Sandbox Code Playgroud)
我在加载地图之前遇到黑屏,我尝试在 build() 方法上创建一个地图小部件并将其存储在一个变量中,以便在我打开底部工作表时使用它,但我仍然面临同样的问题。请看下面的截图:
\n\nhttps://user-images.githubusercontent.com/7915601/64229575-9d27e600-cf03-11e9-8619-9a7d1892d58d.gif
\n\n代码
\n\n Widget _buildMap() {\n return Expanded(\n flex: 1,\n child: MapWidget(\n initialLocation: _center,\n zoomLevel: 11.0,\n locations: _jobStore.jobLocations,\n onMarkerTap: (id) {\n print(\'job id: $id\');\n _jobStore.onItemClick(jobId: int.tryParse(id) ?? 0);\n },\n ),\n );\n }\nRun Code Online (Sandbox Code Playgroud)\n\n扑医生
\n\nmacs-mbp:cubivue_app mac$ flutter doctor -v\n[\xe2\x9c\x93] Flutter (Channel stable, v1.7.8+hotfix.4, on Mac OS X 10.14.6 18G87, locale en-PK)\n \xe2\x80\xa2 Flutter version 1.7.8+hotfix.4 at /Users/mac/Documents/flutter\n \xe2\x80\xa2 Framework revision 20e59316b8 (7 weeks ago), 2019-07-18 20:04:33 -0700\n \xe2\x80\xa2 Engine revision fee001c93f\n \xe2\x80\xa2 Dart version …Run Code Online (Sandbox Code Playgroud) 我是 Jenkins 的新手,并尝试设置构建自动化和测试,但每当我运行构建时,它都会失败并给出以下错误:
FAILURE: Build failed with an exception.
* What went wrong:
Could not update C:\Users\Embrace-IT\.gradle\caches\4.4\file-changes\last-build.bin
> C:\Users\Embrace-IT\.gradle\caches\4.4\file-changes\last-build.bin (Access is denied)
Run Code Online (Sandbox Code Playgroud) 我是不熟悉的新手,我试图将所有窗口小部件集中在列窗口小部件内,但无法正常工作。我尝试将列封装到中心窗口小部件中,但是它仍然相同,并且与屏幕顶部对齐。下面是我的代码,请看一下,让我知道我在做什么错。谢谢 :)
import 'package:flutter/material.dart';
import 'package:shared_preferences/shared_preferences.dart';
class SignIn extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Material(
child: Padding(
padding: EdgeInsets.all(15.0),
child: Column(
children: <Widget>[
Text(
'SignIn Screen',
style: TextStyle(fontSize: 26.0),
),
Padding(
padding: EdgeInsets.only(top: 30.0),
),
TextField(
maxLength: 25,
decoration: InputDecoration(
hintText: 'Enter username',
),
),
TextField(
maxLength: 25,
decoration: InputDecoration(
hintText: 'Enter password',
),
),
Expanded(
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: <Widget>[
RaisedButton(
child: Text('SignIn'),
onPressed: _signIn,
),
],
),
),
],
),
),
);
}
Future …Run Code Online (Sandbox Code Playgroud) 我有一个在完全托管的设备上运行的 KIOSK 应用程序。我在 PlayStore 上推送了几个更新,我可以在 PlayStore App 上看到更新的版本,但它们没有自动更新。
我也将auto-update政策设置为Always但仍然没有运气。帮助表示赞赏