Flutter(36)
-
ex30. AnimatedText
✅ animatedText 라이브러리✅ pubspec.yaml 수정animated_text_kit: ^4.2.2✅ animatedTextimport 'package:flutter/material.dart';import 'package:animated_text_kit/animated_text_kit.dart';class ExAnimatedText extends StatelessWidget { const ExAnimatedText({super.key}); @override Widget build(BuildContext context) { return SizedBox( width: 250.0, child: TextLiquidFill( text: 'LIQUIDY', ..
2024.06.13 -
ex29. Toast
✅ pub.dev✅ MOST LIKES 사용✅ fluttertoast 라이브러리 연결name: flutter0612description: "A new Flutter project."# The following line prevents the package from being accidentally published to# pub.dev using `flutter pub publish`. This is preferred for private packages.publish_to: 'none' # Remove this line if you wish to publish to pub.dev# The following defines the version and build number for your applic..
2024.06.13 -
ex28. Login
✅ Textfield 예제import 'package:flutter/material.dart';class ExLogin extends StatefulWidget { const ExLogin({super.key}); @override State createState() => _ExLoginState();}class _ExLoginState extends State { @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: Center( child: Text( '로그인 화면', style: TextStyle( ..
2024.06.13 -
ex27. TextField
✅ TextField✅ keyboardTypeimport 'package:flutter/material.dart';class ExTextField extends StatefulWidget { const ExTextField({super.key}); @override State createState() => _ExTextFieldState();}class _ExTextFieldState extends State { // 텍스트 필드의 값을 가져올 수 있는 controller 생성 // -> 각각의 필드를 따로 관리하기 위하여 텍스트 필드의 갯수만큼 생성! TextEditingController emailCon = TextEditingController(); // 기능을 가져아하기 때문..
2024.06.13 -
ex26. RadioButton
import 'package:flutter/material.dart';// stl -> 디자인 위주, 간단한 로직// stf -> setState(), 상태가 변화하거나 화면에 이동이 있는 경우class ExRadioButton extends StatefulWidget { const ExRadioButton({super.key}); @override State createState() => _ExRadioButtonState(); // enum Gender {man, woman} -> 이 위치에서 오류!}// Radio 버튼 사용시 필수사항!// 버튼들의 그룹을 먼저 지정! => 열거형으로 지정!// +) 열거시 클래스의 구조 안이나, 메소드의 구조 안에서 열거가 불가능 하다!enum Gender..
2024.06.13 -
ex25. SwitchButton
import 'package:flutter/material.dart';class ExSwitchButton extends StatefulWidget { const ExSwitchButton({super.key}); @override State createState() => _ExSwitchButtonState();}class _ExSwitchButtonState extends State { bool isOn = true; List isOnList = [false, false]; @override Widget build(BuildContext context) { return Scaffold( body: SafeArea( child: Column( ch..
2024.06.13