File tree 1 file changed +36
-0
lines changed
1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change
1
+ import 'package:flutter/cupertino.dart' ;
2
+ import 'package:flutter/material.dart' ;
3
+
4
+ class ListMeals extends StatefulWidget {
5
+ @override
6
+ _ListMealsState createState () => _ListMealsState ();
7
+ }
8
+
9
+ class _ListMealsState extends State <ListMeals > {
10
+ @override
11
+ Widget build (BuildContext context) {
12
+ var mediaQuery = MediaQuery .of (context);
13
+ return Scaffold (
14
+ body: Stack (
15
+ children: < Widget > [
16
+ _buildWidgetBackgroundCircle (mediaQuery),
17
+ ],
18
+ ),
19
+ );
20
+ }
21
+
22
+ Positioned _buildWidgetBackgroundCircle (MediaQueryData mediaQuery) {
23
+ return Positioned (
24
+ top: - 100.0 ,
25
+ left: - 100.0 ,
26
+ child: Container (
27
+ width: mediaQuery.size.height / 2.2 ,
28
+ height: mediaQuery.size.height / 2.2 ,
29
+ decoration: BoxDecoration (
30
+ color: Color (0x3FE8364B ),
31
+ shape: BoxShape .circle,
32
+ ),
33
+ ),
34
+ );
35
+ }
36
+ }
You can’t perform that action at this time.
0 commit comments