forked from md-siam/widget_of_the_day
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphysical_model.dart
39 lines (37 loc) · 1.01 KB
/
physical_model.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import 'package:flutter/material.dart';
class MyPhysicalModel extends StatelessWidget {
const MyPhysicalModel({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: const Text('Physical Model')),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
PhysicalModel(
color: Colors.transparent,
shadowColor: Colors.black,
elevation: 10,
child: Image.asset(
'assets/images/box_2.png',
height: 200,
width: 200,
),
),
const SizedBox(height: 50),
PhysicalModel(
color: Colors.black,
elevation: 10,
child: Container(
height: 150,
width: 150,
color: Colors.blue,
),
),
],
),
),
);
}
}