sudo mkdir /private/tmp
sudo chmod 1777 /private/tmp
xcrun
xcrun simctl list devices //to list all simulators
xcrun simctl delete // to delete specific device
| // Copyright (c) 2018, the Zefyr project authors. Please see the AUTHORS file | |
| // for details. All rights reserved. Use of this source code is governed by a | |
| // BSD-style license that can be found in the LICENSE file. | |
| import 'dart:collection'; | |
| import 'dart:convert'; | |
| import 'package:quill_delta/quill_delta.dart'; | |
| import 'package:notus/notus.dart'; | |
| import 'package:html/parser.dart' show parse; |
| import 'dart:convert'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:webview_flutter/webview_flutter.dart'; | |
| void main() => runApp(MyApp()); | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { |
| func keyboardWillShow(notification: NSNotification) { | |
| if let keyboardSize = (notification.userInfo?[UIKeyboardFrameBeginUserInfoKey] as? NSValue)?.CGRectValue() { | |
| let contentInsets = UIEdgeInsets(top: self.tableView.contentInset.top, left: 0, bottom: keyboardSize.height, right: 0) | |
| self.tableView.contentInset = contentInsets | |
| // If active text field is hidden by keyboard, scroll it so it's visible | |
| // Your app might not need or want this behavior. | |
| var aRect: CGRect = self.view.frame | |
| aRect.size.height -= keyboardSize.height | |
| let activeTextFieldRect: CGRect? |