728x90 반응형 전체 글105 flutter pub add flutter_keyboard_visibility import 'package:flutter/material.dart'; import 'package:flutter_keyboard_visibility/flutter_keyboard_visibility.dart'; void main() { runApp(const MyApp()); } class MyApp extends StatelessWidget { const MyApp({Key? key}) : super(key: key); @override Widget build(BuildContext context) { // Wrap MaterialApp with KeyboardVisibilityProvider return KeyboardVisibilityProvider( child: MaterialApp( // Re.. 2022. 12. 2. 플러터 alert 팝업창 import 'package:flutter/material.dart'; void main() => runApp(const MyApp()); class MyApp extends StatelessWidget { const MyApp({super.key}); @override Widget build(BuildContext context) { return MaterialApp( theme: ThemeData( colorSchemeSeed: const Color(0xff6750a4), useMaterial3: true), home: Scaffold( appBar: AppBar(title: const Text('AlertDialog Sample')), body: const Center( child: DialogEx.. 2022. 12. 1. A package may not list itself as a dependency flutter pub get 실행 시 A package may not list itself as a dependency 위 에러가 뜬다면, 디펜던시에 추가하려는 이름과 프로젝트명이 같아서 뜨는 문제. 프로젝트명을 바꾸어줘야 한다. 2022. 11. 29. The overflowing RenderFlex has an orientation of Axis.vertical. column을 SingleChildScrollView 감싸준다 SingleChildScrollView( child: Column( ... ), ), 2022. 11. 23. 이전 1 ··· 16 17 18 19 20 21 22 ··· 27 다음 728x90 반응형