- [The Complete Flutter Development Bootcamp with Dart] 3 MiCard2024년 01월 05일 23시 49분 14초에 업로드 된 글입니다.작성자: sue24
how to clone git with git repo's https clone
1. android studio-check out project from version control
2. Git
3. Url(git repo's https clone)
4. Directory(where you will install the project)
5. Clone
6. check out from version control alert - NO
7. open an existing android studio project - open(directory that you've set on No.4)
8. there will be an error when you open it => lib/main.dart - get dependencies
hot reload: ⚡
+) command + s will trigger hot reload, too
+) hot reload won't loose the state
SafeArea widget ensures the contents will be displayed under the notch
void main() { runApp{ MyApp() } } class myApp extends StatelessWidget{ @override Widget build(BuildContext context) { return MaterialApp( home: Scaffold( body: SafeArea( child: Container( height: 100.0, // 100px width: 100.0, color: Colors.white, child: Text('Hello'), margin: EdgeInsets.all(20.0), ) ) ) ) } }right click on a widget - show context actions - wrap with new widget
margin setting
padding also could be set in same way
1. EdgeInsets.all(20.0): all four direction
2. EdgeInsets.symmetric(vertical: 50.0, horizontal: 50.0): not both of the properties are needed
3. EdgeInsets.fromLTRB(30.0, 10.0, 50.0, 20.0): left, top, right, bottom
4. EdgeInsets.only(left: 30.0): specify the direction you want to set margin
'모바일 > Flutter' 카테고리의 다른 글
모두가 할 수 있는 플러터 UI 입문2 (0) 2024.01.09 모두가 할 수 있는 플러터 UI 입문1 (1) 2024.01.08 Flutter에서 텍스트를 중앙에 배치하는 6가지 방법 (0) 2024.01.04 [The Complete Flutter Development Bootcamp with Dart] 2 container, column, row (1) 2024.01.03 [The Complete Flutter Development Bootcamp with Dart] 1 (0) 2024.01.02 다음글이 없습니다.이전글이 없습니다.댓글