Flutter'da yazıya shadow(gölge) vermek isteyebilirsiniz. Bunun için Text widget'ının style özelliğinden shadow'u kullanmanız gerek. İşte shodow kullanımı.
class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp(home: SO()); } } class SO extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold( backgroundColor: Colors.deepOrange.shade400, appBar: AppBar(), body: Center( child: Text( "A B C", style: TextStyle( fontSize: 80, shadows: [Shadow(color: Colors.blue.shade100, offset: Offset(-10, -10)), Shadow(color: Colors.black, blurRadius: 8, offset: Offset(10, 10))]), ), ), ); } }

Yorumlar
Yorum Gönder