Quantcast
Channel: Active questions tagged windows - Super User
Viewing all articles
Browse latest Browse all 8949

How can I implement a depression or depth effect in Flutter? [closed]

$
0
0
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),              ),            ),          ),        ),      ),    );  }}

Viewing all articles
Browse latest Browse all 8949

Trending Articles