Container 실습 (call)

tpids·2024년 9월 10일

Flutter

목록 보기
9/40

import 'package:flutter/material.dart';

class test extends StatelessWidget {
  const test({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Row(
        children: [
          Container(
            width: 120,
            height: 120,
            margin: EdgeInsets.fromLTRB(32, 32, 0, 0),
            decoration: BoxDecoration(
              color: Colors.green[500],
              borderRadius: BorderRadius.circular(40),
            ),
            child: Center(
                child: Icon(
              Icons.call,
              size: 80,
              color: Colors.white,
            )),
          ),
        ],
      ),
    );
  }
}

profile
개발자

0개의 댓글