Home 6월 5일 Today I Learned
Post
Cancel

6월 5일 Today I Learned

오늘한 일

  • Flutter 학습을 하였다
  • 블로그 TIL을 작성하였다
  • 1일 1커밋을 하였다

느낌 점

오늘부터 다시 하루의 목표를 정하고 매일 하던 루틴을 지키는 과거의 습관으로 돌아왔는데 역시 이렇게 정리하니 한눈에 지금 내가 뭘 해야하는 지 파악이 잘되어 공부하는데 일정관리 편한 것 같다 앞으로도 무너지지 말고 이렇게 쭉 유지해야겠다

배운 점

Flutter 프로그래스바 사용

1
CircularProgressIndicator()

Flutter에서 동그란모양에 프로그래스바를 사용하고 쉽다면 위와 같이 CircularProgressIndicator를 통해 만들 수 있다

만약 프로그래스바에 색깔이 마음에 안든다면

1
2
3
CircularProgressIndicator(
    color: Colors.blue,
)

위와 같이 color에 색을 변경하면 된다

Flutter 이미지 넣기

1
주소/프로젝트이름/pubspec.yaml

Flutter에서 이미지와 같은 asset을 사용하기 위해서는 위 파일에 들어가

1
2
3
4
5
6
7
8
flutter:

  # The following line ensures that the Material Icons font is
  # included with your application, so that you can use the icons in
  # the material Icons class.
  uses-material-design: true
  assets:
    - # asset 위치

assets에 사용할 asset 위치를 넣어 줘야한다

1
Image.asset('img/img1.jpg')

그 후 이런식으로 이미지를 넣어 사용할 수 있다

내일 계획

내일은 Flutter에 대해 블로그 글 작성을 해야겠다

This post is licensed under CC BY 4.0 by the author.

6월 4일 Today I Learned

플러터(Flutter)란 무엇일까? 플러터(Flutter)를 이해해보자