Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b2a39d6

Browse files
Add elastic-drawer example
1 parent a6679c2 commit b2a39d6

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

‎lib/pages/squid_game.dart

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /