首先,我使用amplify configure. 我是在AWS Amplify 文档的帮助下完成的。然后我成功地将身份验证添加到我的放大项目中,使用amplify add auth和amplify push。我遵循了AWS - Authentication with Amplify Doc中的所有步骤
我的长App.js这样
import React from 'react';
import { withAuthenticator, AmplifySignOut } from '@aws-amplify/ui-react';
import Amplify, { Auth } from 'aws-amplify';
import awsconfig from './aws-exports';
Amplify.configure(awsconfig);
const App = () => (
<div>
<AmplifySignOut />
My App
</div>
);
export default withAuthenticator(App);
Run Code Online (Sandbox Code Playgroud)
我想将颤振中的行分成 4 列,宽度相同。到目前为止,我想出的解决方案是这样的,
child: Row(
children: <Widget>[
Container(
width: MediaQuery.of(context).size.width * 0.25,
decoration: BoxDecoration(color: Colors.greenAccent),
),
Container(
width: MediaQuery.of(context).size.width * 0.25,
decoration: BoxDecoration(color: Colors.yellow),
),
Container(
width: MediaQuery.of(context).size.width * 0.25,
decoration: BoxDecoration(color: Colors.blue),
),
Container(
width: MediaQuery.of(context).size.width * 0.25,
decoration: BoxDecoration(color: Colors.white),
),
],
),
Run Code Online (Sandbox Code Playgroud)
有没有什么替代方法。在这种方法中,将行分成 1/3 的比例也不起作用。
我在我的 AWS Amplify 项目中添加了 S3 lambda 触发器。但是,当我尝试使用 删除该 lambda 触发器时amplify remove function,它显示以下错误。
Resource cannot be removed because it has a dependency on another resource
Dependency: S3 - s3xxxxxxxx
An error occurred when removing the resources from the local directory
Run Code Online (Sandbox Code Playgroud)
AWS Amplify 文档没有删除 lambda 函数的明确指南。那么,如何在不删除S3资源的情况下删除该功能呢?
我面临着在主分区中恢复可用磁盘空间的问题。我在我的用户文件夹中找到了这些文件。这些名为 IntelliJ 以前版本的文件夹在我的磁盘空间中分配了 1.5GB。所以我的问题是删除这些文件是否安全?