我想要实现的目标:将容器div(包含两个div)和第二个div中的底部对齐文本居中
在我的第二个div,两段文字
———————-----
| |
| | column2
| column1 | -———————-------
| picture | | Paragraph |
| | ———————--------
| | ———————————------------------
| | | a paragraph of text |
| | | of text of text of text of |
——————----—— ———————----------------------
Run Code Online (Sandbox Code Playgroud)我的问题:
我无法将我的两段对齐在底部.他们位居榜首.
我的容器div也没有与中心对齐
目前它们看起来像这样:
———————----- -———————-------
| picture | | Paragraph |
| | ———————--------
| | ———————————------------------
| | | a paragraph of text |
| | | of text of text …Run Code Online (Sandbox Code Playgroud) 我想要做的是:使用谷歌地图 api 获取数据,然后将数据传递到下一个屏幕。
有什么问题:它在 iOS 模拟器上运行良好,它设法进入下一个屏幕并用数据填充地图(打印位置、“yay”、http 状态代码和“loopyays”)。但是在 android 模拟器上,它只打印位置和“yay”,并挂在那里,不会导航到下一个屏幕。
什么地方出了错?:/ 请帮帮我..
class _LoadingScreenState extends State<LoadingScreen> {
void getUserLocation() async {
try {
Position position = await Geolocator()
.getCurrentPosition(desiredAccuracy: LocationAccuracy.high);
print(position);
Set<Marker> markers = {};
String url =
'https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=${position.latitude},${position.longitude}&maxprice=4&radius=1500&type=restaurant&keyword=cruise&key=AIzaSyDVzxxxxxxxxxxxxxxxxxxx';
print('yay');
http.Response data = await http.get(url);
print(data.statusCode);
var resultList = jsonDecode(data.body)['results'];
for (Map i in resultList) {
var coords = (i['geometry']['location']);
print('loopyay');
markers.add(Marker(
markerId: MarkerId(i['name']),
position: LatLng(coords['lat'], coords['lng'])));
}
Navigator.push(context, MaterialPageRoute(builder: (context) {
return UserLocationScreen(
userLocation: position,
markers: markers,
); …Run Code Online (Sandbox Code Playgroud) 我正在尝试为 SCP 我的 python 脚本创建一个新文件夹,以便我可以在 AWS EC2 实例上运行它。
所以我有 SSH 并连接到我的实例。我尝试了ls没有任何显示。
pwd显示:
/home/ec2-user
Run Code Online (Sandbox Code Playgroud)
mkdir /newFile显示:
mkdir: cannot create directory '/newFile': Permission denied
Run Code Online (Sandbox Code Playgroud)
sudo mkdir /newFile显示没有错误。但当我 时ls,什么也没有显示。怎么了?
我使用的是 MacBook,我的实例是 AWS Linux AMI。