Dev/Flutter63 Flutter - Local Notification 참고 1. Local Notification 을 만들기 위한 참고 영상 - https://www.youtube.com/watch?v=bRy5dmts3X8 2. timezone 설정을 위한 import 순서 - https://stackoverflow.com/a/64312779/3897810 2021. 12. 6. Flutter - border 적용 https://stackoverflow.com/a/53680045/3897810 How can I add a border to a widget in Flutter? I'm using Flutter and I'd like to add a border to a widget (in this case, a Text widget). I tried TextStyle and Text, but I didn't see how to add a border. stackoverflow.com Container( decoration: BoxDecoration( border: Border.all(width: 1), borderRadius: const BorderRadius.all(Radius.circular(5))), child.. 2021. 11. 24. Flutter - 함수 파라미터에 기본 인자 설정하기 Flutter 함수에 기본 인자값이 들어가는 파라미터 설정하는 방법 Kotlin 1. 기본 인자 설저하는 방법 fun bottomSimpleButton(title: String, name: String = "후니") 2. 해당 함수를 다음과 같이 호출하면 된다. // Title 만 입력하고 Name 은 기본값 사용. bottomSimpleButton("Title") // Title 과 Name 모두 입력. bottomSimpleButton("Title", "Name") bottomSimpleButton(title = "Title", name = "Name") bottomSimpleButton(name = "Name", title = "Title") Flutter 1. 함수에 아래와 같이 기본 인자 부분을.. 2021. 11. 23. Flutter - listener, callback 구현하기 Flutter 에서 Custom callback 함수를 간단하게 구현하는 방법 1. 인터페이스 역할을 해주는 함수를 typedef 로 정의 typedef DateTimeCallback = void Function(DateTime); 2. 원하는 콜백을 만들고 싶은 함수에 DateTimeCallback 이라 선언한 함수를 파라미터로 넣어준다. class SelectCalendar { Future showPickerDate(BuildContext context, DateTime initDate, DateTimeCallback callback) async { await showDatePicker( .... }).then((value) => { if (value != null) { callback(value) .. 2021. 11. 19. Flutter - ScrollListView Flutter 에서 ScrollListView 적용 방법 참고 : https://api.flutter.dev/flutter/widgets/SingleChildScrollView-class.html import 'package:flutter/material.dart'; void main() => runApp(const MyApp()); /// This is the main application widget. class MyApp extends StatelessWidget { const MyApp({Key? key}) : super(key: key); static const String _title = 'Title'; @override Widget build(BuildContext context) { ret.. 2021. 11. 17. Flutter - Syncfusion Calendar 사용 Syncfusion Flutter 캘린더 라이브 사용 방법 라이브러리 참고 1. 라이브러리 추가 syncfusion_flutter_calendar: ^19.3.48 2. SfCalendar 추가 @override Widget build(BuildContext context) { return Scaffold( body: Container( height: 500, width: double.infinity, child: Column( children: [ ... _SfCalendarSetting() ... ], ), ), ); } Widget _SfCalendarSetting() { return SfCalendar( view: CalendarView.month, ... headerHeight: 0, ... ).. 2021. 11. 10. 이전 1 ··· 7 8 9 10 11 다음