본문 바로가기
  • Let's study

Android/Flutter4

[Flutter] Elevated Button RaisedButton(구버전) RaisedButton( onPressed: () { }, color: Colors.black, shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(10),//둥글게 ), child: Text(''), ) Elevated Button(신버전) ElevatedButton( onPressed: () {}, style: ElevatedButton.styleFrom( primary: Color(0xff000000), shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(10),//둥글게 ), ), child: Text('') ) 2022. 7. 8.
반응형 앱 만들기 - Flutter import 'package:flutter/material.dart'; void main() { runApp(const MyApp2()); } class MyApp2 extends StatefulWidget { const MyApp2({Key? key}) : super(key: key); @override _MyApp2State createState() => _MyApp2State(); } class _MyApp2State extends State { @override Widget build(BuildContext context) { return MaterialApp( title: 'Flutter Demo', theme: ThemeData( primarySwatch: Colors.blue, ), home.. 2022. 1. 23.
레이아웃 빌딩 - Flutter import 'package:flutter/material.dart'; void main() { runApp(const MyApp()); } class MyApp extends StatelessWidget { const MyApp({Key? key}) : super(key: key); @override Widget build(BuildContext context) { return MaterialApp( title: 'Flutter Demo', theme: ThemeData( primarySwatch: Colors.blue, ), home: const MyHomePage(title: 'Flutter Demo Home Page'), ); } } class MyHomePage extends StatefulWi.. 2022. 1. 23.
카운팅 앱 만들기 - Flutter import 'package:flutter/material.dart'; void main()=>runApp(MyApp()); class MyApp extends StatelessWidget { const MyApp({Key? key}) : super(key: key); @override Widget build(BuildContext context) { return MaterialApp( title: 'Flutter Demo', theme: ThemeData(primarySwatch: Colors.blue), home: MyHomePage(title: 'Flutter Demo Home Page') ); } } class MyHomePage extends StatefulWidget { // _MyHomePa.. 2022. 1. 23.