일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
- typescript
- express
- 영어
- react
- Chrome
- nodejs
- database
- MAC
- Datastructure
- javascript
- frontend
- JSP
- etc
- HTML
- cloud
- English
- mongodb
- db
- node.js
- language
- flutter
- Git
- ReactJS
- OOP
- java
- Algorithms
- DART
- CSS
- Infra
- leetcode
- Today
- Total
목록Dev/Flutter (3)
henry dev
iOS 시뮬레이터를 실행시키려고 할 때 "Unable to boot the Simulator." 에러가 발생하면서 실행이 안 되는 현상이 발생했다. 이를 해결하려면 상단 메뉴에서 about this mac-More info.-General-Storage-Developer의 느낌표-xCode cache 삭제 이 과정을 거치면 문제가 해결된다.
아래와 같이 scaffold를 탭할 때 unfocus를 해주면 input창에 포커스 가 있던게 없어진다. 그러면서 키보드도 사라진다. void _onScaffoldTap() { FocusScope.of(context).unfocus(); } ... @override Widget build(BuildContext context) { return GestureDetector( onTap: _onScaffoldTap, child: Scaffold( appBar: AppBar( ...
Flutter에서 AppBar를 많이 사용하는데 모든 화면에서 AppBar에 대한 배경색, 폰트색, 폰트 굵기 등을 정의한다면 너무 귀찮을 것이다. AppBar 성격상 동일한 스타일이 적용될건데 매번 반복 작업을 해야하기 때문이다. Scaffold의 배경색 같은 것도 마찬가지다. 이런 부분을 해결하기 위해 main.dart에서 style에 대한 전역 설정을 할 수 있다. Widget build(BuildContext context) { return MaterialApp( theme: ThemeData( scaffoldBackgroundColor: Colors.white, primaryColor: const Color(0xFFE9435A), appBarTheme: const AppBarTheme( fore..