1
+ import 'package:elastic_drawer/elastic_drawer.dart' ;
2
+ import 'package:flutter/material.dart' ;
3
+
4
+ class SquidGame extends StatefulWidget {
5
+ const SquidGame ({ Key ? key }) : super (key: key);
6
+
7
+ @override
8
+ _SquidGameState createState () => _SquidGameState ();
9
+ }
10
+
11
+ class _SquidGameState extends State <SquidGame > {
12
+ @override
13
+ Widget build (BuildContext context) {
14
+ return ElasticDrawer (
15
+ mainColor: Colors .white,
16
+ drawerColor: Colors .black,
17
+ mainChild: Column (
18
+ children: [
19
+ Expanded (
20
+ child: Image .network ('https://images.unsplash.com/photo-1634193295627-1cdddf751ebf?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1287&q=80' ,
21
+ fit: BoxFit .cover,),
22
+ )
23
+ ]
24
+ ),
25
+ drawerChild: Column (
26
+ children: [
27
+ Expanded (
28
+ child: Image .network ('https://images.unsplash.com/photo-1634195130430-2be61200b66a?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1287&q=80' ,
29
+ fit: BoxFit .cover,),
30
+ )
31
+ ]
32
+ ),
33
+ );
34
+ }
35
+ }
0 commit comments