플러터를 최고로 사용하세요!
5511 단어 flutter
1.) 소개 화면
Introduction screen을 사용하면 예를 들어 런처에 앱을 설명할 수 있는 화면을 표시할 수 있습니다. 이 위젯은 훌륭한 디자인으로 매우 사용자 정의가 가능합니다.
IntroductionScreen(
pages: listPagesViewModel,
onDone: () {
// When done button is press
},
showBackButton: false,
showSkipButton: true,
skip: const Text("Skip"),
done: const Text("Done", style: TextStyle(
fontWeight: FontWeight.w600
)),
);
2.) 리치텍스트
RichText 위젯은 다양한 스타일을 사용하는 텍스트를 표시합니다. 표시할 텍스트는 TextSpan 개체의 트리를 사용하여 설명되며 각 개체에는 해당 하위 트리에 사용되는 연결된 스타일이 있습니다.
RichText(
text: TextSpan(
text: 'Hello ',
style: DefaultTextStyle.of(context).style,
children: const <TextSpan>[
TextSpan(text: 'bold', style: TextStyle(
fontWeight: FontWeight.bold
)),
TextSpan(text: ' world!'),
],
),
)
3.) 서클아바타
사용자 프로필의 원 안에 사용자 아바타를 표시합니다 🤗

CircleAvatar(
radius: 150,
child: Image.asset("images/welcome.png"),
)
4.) 스플래시 화면
스플래시 화면은 모바일 앱이 로드되는 동안 간단한 초기 경험을 제공합니다.

이것을 pubspec.yaml에 추가하십시오.
flutter_native_splash:
color: "#42a5f5"
image: assets/splash.png
터미널에서 이 명령을 실행합니다.
flutter pub run flutter_native_splash:create
5.) 상태 표시줄 및 탐색 표시줄
상태 및 탐색 모음을 사용자 정의하십시오!!! 좋아하는 색상 추가 🎨

SystemChrome.setSystemUIOverlayStyle(
SystemUioverlayStyle(
statusBarColor: Colors.indigoAccent,
systemNavigationBarColor: Colors.indigoAccent,
)
)
6.) 쿠퍼티노 위젯
플랫폼에 따라 구성 요소를 설정할 수 있습니다. 화면을 iOS처럼 만들고 싶다면 cupertino를 사용할 수 있습니다.

Platform.isAndroid
? CircularProgressIndicator()
: CupertinoActivityIndicator()
7.) 슬라이더
Flutter의 Aslider는 값 범위를 선택하는 데 사용되는 머티리얼 디자인 위젯입니다.

Slider(
value: currentValue,
onChanged: (newValue) {
setState( () {
currentValue = newValue;
});
},
min: 0,
max: 100,
)
8.) 칩
Chips은 속성, 텍스트, 엔티티 또는 작업을 나타내는 압축 요소입니다.

Chip(
label: Text(languages(index)),
onSelected: (bool value) {},
)
9.) Google 글꼴 사용
SelectableText(
"Google Fonts",
style: GoogleFonts.aguafinaScript().copyWith(fontSize: 60),
)
10.) 곡선 내비게이션 바
멋쟁이navigation bar 🤩하실분?

CurvedNavigationBar(
backgroundColor: Colors.blueAccent,
items: _icons,
onTap: (index) {},
)
❤ ❤ 이 글을 읽어주셔서 감사합니다 ❤❤
Reference
이 문제에 관하여(플러터를 최고로 사용하세요!), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://dev.to/shalinikumari50/use-flutter-at-its-best-6cm텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)