import 'package:flutter/material.dart';void main() => runApp(MyApp());class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( home: Scaffold( appBar: AppBar(title: Text('Depression Effect in Flutter')), body: Center( child: PhysicalModel( color: Colors.white, elevation: 8.0, shadowColor: Colors.black, borderRadius: BorderRadius.circular(10), child: Container( width: 200, height: 100, alignment: Alignment.center, child: Text('3D Effect', style: TextStyle(fontSize: 20), ), ), ), ), ), ); }}
↧
How can I implement a depression or depth effect in Flutter? [closed]
↧