Showing
7 changed files
with
43 additions
and
42 deletions
1 | -# Generated by pub on 2020-01-06 17:25:02.129620. | 1 | +# Generated by pub on 2020-01-06 17:46:26.285635. |
2 | archive:file:///D:/flutter/.pub-cache/hosted/pub.dartlang.org/archive-2.0.11/lib/ | 2 | archive:file:///D:/flutter/.pub-cache/hosted/pub.dartlang.org/archive-2.0.11/lib/ |
3 | args:file:///D:/flutter/.pub-cache/hosted/pub.dartlang.org/args-1.5.2/lib/ | 3 | args:file:///D:/flutter/.pub-cache/hosted/pub.dartlang.org/args-1.5.2/lib/ |
4 | async:file:///D:/flutter/.pub-cache/hosted/pub.dartlang.org/async-2.4.0/lib/ | 4 | async:file:///D:/flutter/.pub-cache/hosted/pub.dartlang.org/async-2.4.0/lib/ |
@@ -141,25 +141,25 @@ Column( | @@ -141,25 +141,25 @@ Column( | ||
141 | import 'package:flutter/material.dart'; | 141 | import 'package:flutter/material.dart'; |
142 | import 'package:flutter_screenutil/flutter_screenutil.dart'; | 142 | import 'package:flutter_screenutil/flutter_screenutil.dart'; |
143 | 143 | ||
144 | -void main() => runApp(new MyApp()); | 144 | +void main() => runApp(MyApp()); |
145 | 145 | ||
146 | class MyApp extends StatelessWidget { | 146 | class MyApp extends StatelessWidget { |
147 | @override | 147 | @override |
148 | Widget build(BuildContext context) { | 148 | Widget build(BuildContext context) { |
149 | - return new MaterialApp( | 149 | + return MaterialApp( |
150 | debugShowCheckedModeBanner: false, | 150 | debugShowCheckedModeBanner: false, |
151 | title: 'Flutter_ScreenUtil', | 151 | title: 'Flutter_ScreenUtil', |
152 | - theme: new ThemeData( | 152 | + theme: ThemeData( |
153 | primarySwatch: Colors.blue, | 153 | primarySwatch: Colors.blue, |
154 | ), | 154 | ), |
155 | - home: new MyHomePage(), | 155 | + home: MyHomePage(), |
156 | ); | 156 | ); |
157 | } | 157 | } |
158 | } | 158 | } |
159 | 159 | ||
160 | class MyHomePage extends StatefulWidget { | 160 | class MyHomePage extends StatefulWidget { |
161 | @override | 161 | @override |
162 | - _MyHomePageState createState() => new _MyHomePageState(); | 162 | + _MyHomePageState createState() => _MyHomePageState(); |
163 | } | 163 | } |
164 | 164 | ||
165 | class _MyHomePageState extends State<MyHomePage> { | 165 | class _MyHomePageState extends State<MyHomePage> { |
@@ -185,11 +185,11 @@ class _ExampleWidgetState extends State<ExampleWidget> { | @@ -185,11 +185,11 @@ class _ExampleWidgetState extends State<ExampleWidget> { | ||
185 | @override | 185 | @override |
186 | Widget build(BuildContext context) { | 186 | Widget build(BuildContext context) { |
187 | printScreenInformation(); | 187 | printScreenInformation(); |
188 | - return new Scaffold( | ||
189 | - appBar: new AppBar( | ||
190 | - title: new Text(widget.title), | 188 | + return Scaffold( |
189 | + appBar: AppBar( | ||
190 | + title: Text(widget.title), | ||
191 | ), | 191 | ), |
192 | - body: new Center( | 192 | + body: SingleChildScrollView( |
193 | child: Column( | 193 | child: Column( |
194 | crossAxisAlignment: CrossAxisAlignment.center, | 194 | crossAxisAlignment: CrossAxisAlignment.center, |
195 | children: <Widget>[ | 195 | children: <Widget>[ |
@@ -140,18 +140,18 @@ Column( | @@ -140,18 +140,18 @@ Column( | ||
140 | import 'package:flutter/material.dart'; | 140 | import 'package:flutter/material.dart'; |
141 | import 'package:flutter_screenutil/flutter_screenutil.dart'; | 141 | import 'package:flutter_screenutil/flutter_screenutil.dart'; |
142 | 142 | ||
143 | -void main() => runApp(new MyApp()); | 143 | +void main() => runApp( MyApp()); |
144 | 144 | ||
145 | class MyApp extends StatelessWidget { | 145 | class MyApp extends StatelessWidget { |
146 | @override | 146 | @override |
147 | Widget build(BuildContext context) { | 147 | Widget build(BuildContext context) { |
148 | - return new MaterialApp( | 148 | + return MaterialApp( |
149 | debugShowCheckedModeBanner: false, | 149 | debugShowCheckedModeBanner: false, |
150 | title: 'Flutter_ScreenUtil', | 150 | title: 'Flutter_ScreenUtil', |
151 | - theme: new ThemeData( | 151 | + theme: ThemeData( |
152 | primarySwatch: Colors.blue, | 152 | primarySwatch: Colors.blue, |
153 | ), | 153 | ), |
154 | - home: new MyHomePage(), | 154 | + home: MyHomePage(), |
155 | ); | 155 | ); |
156 | } | 156 | } |
157 | } | 157 | } |
@@ -162,7 +162,7 @@ class MyHomePage extends StatefulWidget { | @@ -162,7 +162,7 @@ class MyHomePage extends StatefulWidget { | ||
162 | final String title; | 162 | final String title; |
163 | 163 | ||
164 | @override | 164 | @override |
165 | - _MyHomePageState createState() => new _MyHomePageState(); | 165 | + _MyHomePageState createState() => _MyHomePageState(); |
166 | } | 166 | } |
167 | 167 | ||
168 | class _MyHomePageState extends State<MyHomePage> { | 168 | class _MyHomePageState extends State<MyHomePage> { |
@@ -190,11 +190,11 @@ class _ExampleWidgetState extends State<ExampleWidget> { | @@ -190,11 +190,11 @@ class _ExampleWidgetState extends State<ExampleWidget> { | ||
190 | @override | 190 | @override |
191 | Widget build(BuildContext context) { | 191 | Widget build(BuildContext context) { |
192 | printScreenInformation(); | 192 | printScreenInformation(); |
193 | - return new Scaffold( | ||
194 | - appBar: new AppBar( | ||
195 | - title: new Text(widget.title), | 193 | + return Scaffold( |
194 | + appBar: AppBar( | ||
195 | + title: Text(widget.title), | ||
196 | ), | 196 | ), |
197 | - body: new Center( | 197 | + body: SingleChildScrollView( |
198 | child: Column( | 198 | child: Column( |
199 | crossAxisAlignment: CrossAxisAlignment.center, | 199 | crossAxisAlignment: CrossAxisAlignment.center, |
200 | children: <Widget>[ | 200 | children: <Widget>[ |
@@ -164,11 +164,11 @@ import 'package:flutter_screenutil/flutter_screenutil.dart'; | @@ -164,11 +164,11 @@ import 'package:flutter_screenutil/flutter_screenutil.dart'; | ||
164 | print( | 164 | print( |
165 | 'Razão da fonte e altura para o tamanho do design:${ScreenUtil().scaleHeight * ScreenUtil.pixelRatio}'); | 165 | 'Razão da fonte e altura para o tamanho do design:${ScreenUtil().scaleHeight * ScreenUtil.pixelRatio}'); |
166 | 166 | ||
167 | - return new Scaffold( | ||
168 | - appBar: new AppBar( | ||
169 | - title: new Text(widget.title), | 167 | + return Scaffold( |
168 | + appBar: AppBar( | ||
169 | + title: Text(widget.title), | ||
170 | ), | 170 | ), |
171 | - body: new Center( | 171 | + body: SingleChildScrollView( |
172 | child: Column( | 172 | child: Column( |
173 | crossAxisAlignment: CrossAxisAlignment.center, | 173 | crossAxisAlignment: CrossAxisAlignment.center, |
174 | children: <Widget>[ | 174 | children: <Widget>[ |
1 | import 'package:flutter/material.dart'; | 1 | import 'package:flutter/material.dart'; |
2 | +import 'package:flutter/services.dart'; | ||
2 | import 'package:flutter_screenutil/flutter_screenutil.dart'; | 3 | import 'package:flutter_screenutil/flutter_screenutil.dart'; |
3 | 4 | ||
4 | -void main() => runApp(new MyApp()); | 5 | +void main() => runApp(MyApp()); |
5 | 6 | ||
6 | class MyApp extends StatelessWidget { | 7 | class MyApp extends StatelessWidget { |
7 | @override | 8 | @override |
8 | Widget build(BuildContext context) { | 9 | Widget build(BuildContext context) { |
9 | - return new MaterialApp( | 10 | + return MaterialApp( |
10 | debugShowCheckedModeBanner: false, | 11 | debugShowCheckedModeBanner: false, |
11 | title: 'Flutter_ScreenUtil', | 12 | title: 'Flutter_ScreenUtil', |
12 | - theme: new ThemeData( | 13 | + theme: ThemeData( |
13 | primarySwatch: Colors.blue, | 14 | primarySwatch: Colors.blue, |
14 | ), | 15 | ), |
15 | - home: new MyHomePage(), | 16 | + home: MyHomePage(), |
16 | ); | 17 | ); |
17 | } | 18 | } |
18 | } | 19 | } |
19 | 20 | ||
20 | class MyHomePage extends StatefulWidget { | 21 | class MyHomePage extends StatefulWidget { |
21 | @override | 22 | @override |
22 | - _MyHomePageState createState() => new _MyHomePageState(); | 23 | + _MyHomePageState createState() => _MyHomePageState(); |
23 | } | 24 | } |
24 | 25 | ||
25 | class _MyHomePageState extends State<MyHomePage> { | 26 | class _MyHomePageState extends State<MyHomePage> { |
@@ -45,11 +46,11 @@ class _ExampleWidgetState extends State<ExampleWidget> { | @@ -45,11 +46,11 @@ class _ExampleWidgetState extends State<ExampleWidget> { | ||
45 | @override | 46 | @override |
46 | Widget build(BuildContext context) { | 47 | Widget build(BuildContext context) { |
47 | printScreenInformation(); | 48 | printScreenInformation(); |
48 | - return new Scaffold( | ||
49 | - appBar: new AppBar( | ||
50 | - title: new Text(widget.title), | 49 | + return Scaffold( |
50 | + appBar: AppBar( | ||
51 | + title: Text(widget.title), | ||
51 | ), | 52 | ), |
52 | - body: new Center( | 53 | + body: SingleChildScrollView( |
53 | child: Column( | 54 | child: Column( |
54 | crossAxisAlignment: CrossAxisAlignment.center, | 55 | crossAxisAlignment: CrossAxisAlignment.center, |
55 | children: <Widget>[ | 56 | children: <Widget>[ |
1 | import 'package:flutter/material.dart'; | 1 | import 'package:flutter/material.dart'; |
2 | import 'package:flutter_screenutil/flutter_screenutil.dart'; | 2 | import 'package:flutter_screenutil/flutter_screenutil.dart'; |
3 | 3 | ||
4 | -void main() => runApp(new MyApp()); | 4 | +void main() => runApp(MyApp()); |
5 | 5 | ||
6 | class MyApp extends StatelessWidget { | 6 | class MyApp extends StatelessWidget { |
7 | @override | 7 | @override |
8 | Widget build(BuildContext context) { | 8 | Widget build(BuildContext context) { |
9 | - return new MaterialApp( | 9 | + return MaterialApp( |
10 | debugShowCheckedModeBanner: false, | 10 | debugShowCheckedModeBanner: false, |
11 | title: 'Flutter_ScreenUtil', | 11 | title: 'Flutter_ScreenUtil', |
12 | - theme: new ThemeData( | 12 | + theme: ThemeData( |
13 | primarySwatch: Colors.blue, | 13 | primarySwatch: Colors.blue, |
14 | ), | 14 | ), |
15 | - home: new MyHomePage(), | 15 | + home: MyHomePage(), |
16 | ); | 16 | ); |
17 | } | 17 | } |
18 | } | 18 | } |
@@ -23,7 +23,7 @@ class MyHomePage extends StatefulWidget { | @@ -23,7 +23,7 @@ class MyHomePage extends StatefulWidget { | ||
23 | final String title; | 23 | final String title; |
24 | 24 | ||
25 | @override | 25 | @override |
26 | - _MyHomePageState createState() => new _MyHomePageState(); | 26 | + _MyHomePageState createState() => _MyHomePageState(); |
27 | } | 27 | } |
28 | 28 | ||
29 | class _MyHomePageState extends State<MyHomePage> { | 29 | class _MyHomePageState extends State<MyHomePage> { |
@@ -51,11 +51,11 @@ class _ExampleWidgetState extends State<ExampleWidget> { | @@ -51,11 +51,11 @@ class _ExampleWidgetState extends State<ExampleWidget> { | ||
51 | @override | 51 | @override |
52 | Widget build(BuildContext context) { | 52 | Widget build(BuildContext context) { |
53 | printScreenInformation(); | 53 | printScreenInformation(); |
54 | - return new Scaffold( | ||
55 | - appBar: new AppBar( | ||
56 | - title: new Text(widget.title), | 54 | + return Scaffold( |
55 | + appBar: AppBar( | ||
56 | + title: Text(widget.title), | ||
57 | ), | 57 | ), |
58 | - body: new Center( | 58 | + body: Center( |
59 | child: Column( | 59 | child: Column( |
60 | crossAxisAlignment: CrossAxisAlignment.center, | 60 | crossAxisAlignment: CrossAxisAlignment.center, |
61 | children: <Widget>[ | 61 | children: <Widget>[ |
@@ -75,7 +75,7 @@ packages: | @@ -75,7 +75,7 @@ packages: | ||
75 | path: ".." | 75 | path: ".." |
76 | relative: true | 76 | relative: true |
77 | source: path | 77 | source: path |
78 | - version: "1.0.0" | 78 | + version: "1.0.1" |
79 | flutter_test: | 79 | flutter_test: |
80 | dependency: "direct dev" | 80 | dependency: "direct dev" |
81 | description: flutter | 81 | description: flutter |
-
Please register or login to post a comment