我已经尝试了一切尝试更改文本字段的边框颜色,但似乎被忽略了。
我已经尝试过 sideBorder(甚至宽度也被忽略),hintStyle,将特定主题仅应用于此小部件,但它们似乎都被忽略了。
child: new Theme(
data: ThemeData(
primaryColor: Colors.white,
accentColor: Colors.white,
hintColor: Colors.white //This is Ignored,
inputDecorationTheme: InputDecorationTheme(
border: OutlineInputBorder(
borderSide: BorderSide(color: Colors.white) //This is Ignored
),
),
),
child: new TextField(
style: TextStyle(color: Colors.white, decorationColor: Colors.white),
cursorColor: Colors.white,
decoration: InputDecoration(
border: new OutlineInputBorder(
//borderRadius: const BorderRadius.all(Radius.circular(30.0)),
borderSide: BorderSide(color: Colors.white, width: 0.0) //This is Ignored,
),
hintText: "Search people",
),
),
//new Divider(color: Colors.white, height: 20),
)
Run Code Online (Sandbox Code Playgroud)
我想改变发际线的黑色边框并改变它的颜色和宽度。
我正在尝试让我的 flutter 应用程序共享外部存储中的图像文件。我使用了几个插件来共享它,它们都会导致相同的错误“权限拒绝:读取 androidx.core.content.FileProvider”。
我已经尝试使用多个 filepaths.xml 在清单中添加数十个 Provider,但仍然不起作用。
java.lang.SecurityException: Permission Denial: reading
androidx.core.content.FileProvider uri
content://com.example.fluttersharefile/images/image.png from pid=1769,
uid=1000 requires the provider be exported, or grantUriPermission()
E/DatabaseUtils( 2116): at android.content.ContentProvider.enforceReadPermissionInner(ContentProvider.java:729)
E/DatabaseUtils( 2116): at android.content.ContentProvider$Transport.enforceReadPermission(ContentProvider.java:602)E/DatabaseUtils( 2116): at android.content.ContentProvider$Transport.enforceFilePermission(ContentProvider.java:593)
Run Code Online (Sandbox Code Playgroud)
E/DatabaseUtils(2116):在android.content.ContentProvider$Transport.openTypedAssetFile(ContentProvider.java:507)E/DatabaseUtils(2116):在android.content.ContentProviderNative.onTransact(ContentProviderNative.java:307)E/DatabaseUtils( 2116): 在 android.os.Binder.execTransactInternal(Binder.java:1021) E/DatabaseUtils(2116): 在 android.os.Binder.execTransact(Binder.java:994)
我还尝试使用权限处理程序插件手动请求存储权限,但它仍然没有什么区别
有什么帮助吗?