gradient (2) 썸네일형 리스트형 Ui 패키지 없이 그라디에이션 꾸미기. 컨테이너, 텍스트 등 . 아래와 같이 그라데이션을 패키지 없이 작성이 가능 합니다. final gradient = LinearGradient( begin: Alignment.topLeft, end: Alignment.bottomRight, colors: [Colors.blueAccent, Colors.redAccent, Colors.amberAccent]); 텍스트 자체의 Shadow 그림자 . . Text('Do Not \nUse\nPackage\nFor this\nGradation.', style: TextStyle(fontSize: 50,fontWeight: FontWeight.bold, shadows: [ Shadow( blurRadius:10.0, // shadow blur color: Colo.. Ui 배경화면 설정에서 그라디언트까지, set Background Container 를 사용해서 DecorationImage 로 설정하기 class OnHomeScreen extends StatelessWidget { @override Widget build(BuildContext context) { var imagePath ='https://cdn.pixabay.com/photo/2023/11/26/08/27/leaves-8413064_640.jpg'; return Scaffold( body: Container( decoration: BoxDecoration( color: Colors.white, image: DecorationImage(image: NetworkImage(imagePath), fit: BoxFit.cover), ), child: Center(chil.. 이전 1 다음