Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
91bcf420
Unverified
Commit
91bcf420
authored
Mar 29, 2022
by
Michael Goderbauer
Committed by
GitHub
Mar 29, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prepare examples for use_super_parameters (#100514)
parent
195a1cc4
Changes
23
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
32 additions
and
33 deletions
+32
-33
main.dart
examples/flutter_view/lib/main.dart
+2
-2
pubspec.yaml
examples/flutter_view/pubspec.yaml
+1
-1
pubspec.yaml
examples/hello_world/pubspec.yaml
+1
-1
main.dart
examples/image_list/lib/main.dart
+2
-2
pubspec.yaml
examples/image_list/pubspec.yaml
+1
-1
pubspec.yaml
examples/layers/pubspec.yaml
+1
-1
sector_layout.dart
examples/layers/rendering/src/sector_layout.dart
+4
-5
isolate.dart
examples/layers/services/isolate.dart
+1
-1
lifecycle.dart
examples/layers/services/lifecycle.dart
+1
-1
custom_render_box.dart
examples/layers/widgets/custom_render_box.dart
+1
-1
gestures.dart
examples/layers/widgets/gestures.dart
+1
-1
media_query.dart
examples/layers/widgets/media_query.dart
+3
-3
sectors.dart
examples/layers/widgets/sectors.dart
+1
-1
spinning_mixed.dart
examples/layers/widgets/spinning_mixed.dart
+1
-1
spinning_square.dart
examples/layers/widgets/spinning_square.dart
+1
-1
styled_text.dart
examples/layers/widgets/styled_text.dart
+2
-2
main.dart
examples/platform_channel/lib/main.dart
+1
-1
pubspec.yaml
examples/platform_channel/pubspec.yaml
+1
-1
main.dart
examples/platform_channel_swift/lib/main.dart
+1
-1
pubspec.yaml
examples/platform_channel_swift/pubspec.yaml
+1
-1
main.dart
examples/platform_view/lib/main.dart
+2
-2
pubspec.yaml
examples/platform_view/pubspec.yaml
+1
-1
pubspec.yaml
examples/splash/pubspec.yaml
+1
-1
No files found.
examples/flutter_view/lib/main.dart
View file @
91bcf420
...
@@ -11,7 +11,7 @@ void main() {
...
@@ -11,7 +11,7 @@ void main() {
}
}
class
FlutterView
extends
StatelessWidget
{
class
FlutterView
extends
StatelessWidget
{
const
FlutterView
({
Key
?
key
})
:
super
(
key:
key
);
const
FlutterView
({
super
.
key
}
);
@override
@override
Widget
build
(
BuildContext
context
)
{
Widget
build
(
BuildContext
context
)
{
...
@@ -26,7 +26,7 @@ class FlutterView extends StatelessWidget {
...
@@ -26,7 +26,7 @@ class FlutterView extends StatelessWidget {
}
}
class
MyHomePage
extends
StatefulWidget
{
class
MyHomePage
extends
StatefulWidget
{
const
MyHomePage
({
Key
?
key
})
:
super
(
key:
key
);
const
MyHomePage
({
super
.
key
}
);
@override
@override
State
<
MyHomePage
>
createState
()
=>
_MyHomePageState
();
State
<
MyHomePage
>
createState
()
=>
_MyHomePageState
();
...
...
examples/flutter_view/pubspec.yaml
View file @
91bcf420
...
@@ -2,7 +2,7 @@ name: flutter_view
...
@@ -2,7 +2,7 @@ name: flutter_view
description
:
A new flutter project.
description
:
A new flutter project.
environment
:
environment
:
sdk
:
"
>=2.1
2
.0-0
<3.0.0"
sdk
:
"
>=2.1
7
.0-0
<3.0.0"
dependencies
:
dependencies
:
flutter
:
flutter
:
...
...
examples/hello_world/pubspec.yaml
View file @
91bcf420
name
:
hello_world
name
:
hello_world
environment
:
environment
:
sdk
:
"
>=2.1
2
.0-0
<3.0.0"
sdk
:
"
>=2.1
7
.0-0
<3.0.0"
dependencies
:
dependencies
:
flutter
:
flutter
:
...
...
examples/image_list/lib/main.dart
View file @
91bcf420
...
@@ -124,7 +124,7 @@ const int IMAGES = 50;
...
@@ -124,7 +124,7 @@ const int IMAGES = 50;
@immutable
@immutable
class
MyApp
extends
StatelessWidget
{
class
MyApp
extends
StatelessWidget
{
const
MyApp
(
this
.
port
,
{
Key
?
key
})
:
super
(
key:
key
);
const
MyApp
(
this
.
port
,
{
super
.
key
}
);
final
int
port
;
final
int
port
;
...
@@ -141,7 +141,7 @@ class MyApp extends StatelessWidget {
...
@@ -141,7 +141,7 @@ class MyApp extends StatelessWidget {
}
}
class
MyHomePage
extends
StatefulWidget
{
class
MyHomePage
extends
StatefulWidget
{
const
MyHomePage
({
Key
?
key
,
required
this
.
title
,
required
this
.
port
})
:
super
(
key:
key
);
const
MyHomePage
({
super
.
key
,
required
this
.
title
,
required
this
.
port
}
);
final
String
title
;
final
String
title
;
final
int
port
;
final
int
port
;
...
...
examples/image_list/pubspec.yaml
View file @
91bcf420
...
@@ -4,7 +4,7 @@ description: Simple Flutter project used for benchmarking image loading over net
...
@@ -4,7 +4,7 @@ description: Simple Flutter project used for benchmarking image loading over net
version
:
1.0.0+1
version
:
1.0.0+1
environment
:
environment
:
sdk
:
"
>=2.1
2
.0-0
<3.0.0"
sdk
:
"
>=2.1
7
.0-0
<3.0.0"
dependencies
:
dependencies
:
flutter
:
flutter
:
...
...
examples/layers/pubspec.yaml
View file @
91bcf420
name
:
flutter_examples_layers
name
:
flutter_examples_layers
environment
:
environment
:
sdk
:
"
>=2.1
2
.0-0
<3.0.0"
sdk
:
"
>=2.1
7
.0-0
<3.0.0"
dependencies
:
dependencies
:
flutter
:
flutter
:
...
...
examples/layers/rendering/src/sector_layout.dart
View file @
91bcf420
...
@@ -198,7 +198,7 @@ abstract class RenderDecoratedSector extends RenderSector {
...
@@ -198,7 +198,7 @@ abstract class RenderDecoratedSector extends RenderSector {
class
SectorChildListParentData
extends
SectorParentData
with
ContainerParentDataMixin
<
RenderSector
>
{
}
class
SectorChildListParentData
extends
SectorParentData
with
ContainerParentDataMixin
<
RenderSector
>
{
}
class
RenderSectorWithChildren
extends
RenderDecoratedSector
with
ContainerRenderObjectMixin
<
RenderSector
,
SectorChildListParentData
>
{
class
RenderSectorWithChildren
extends
RenderDecoratedSector
with
ContainerRenderObjectMixin
<
RenderSector
,
SectorChildListParentData
>
{
RenderSectorWithChildren
(
BoxDecoration
?
decoration
)
:
super
(
decoration
);
RenderSectorWithChildren
(
super
.
decoration
);
@override
@override
void
hitTestChildren
(
SectorHitTestResult
result
,
{
required
double
radius
,
required
double
theta
})
{
void
hitTestChildren
(
SectorHitTestResult
result
,
{
required
double
radius
,
required
double
theta
})
{
...
@@ -620,7 +620,7 @@ class SectorHitTestResult extends HitTestResult {
...
@@ -620,7 +620,7 @@ class SectorHitTestResult extends HitTestResult {
///
///
/// * [HitTestResult.wrap], which turns a [SectorHitTestResult] back into a
/// * [HitTestResult.wrap], which turns a [SectorHitTestResult] back into a
/// generic [HitTestResult].
/// generic [HitTestResult].
SectorHitTestResult
.
wrap
(
HitTestResult
result
)
:
super
.
wrap
(
result
);
SectorHitTestResult
.
wrap
(
super
.
result
)
:
super
.
wrap
(
);
// TODO(goderbauer): Add convenience methods to transform hit test positions
// TODO(goderbauer): Add convenience methods to transform hit test positions
// once we have RenderSector implementations that move the origin of their
// once we have RenderSector implementations that move the origin of their
...
@@ -632,10 +632,9 @@ class SectorHitTestEntry extends HitTestEntry {
...
@@ -632,10 +632,9 @@ class SectorHitTestEntry extends HitTestEntry {
/// Creates a box hit test entry.
/// Creates a box hit test entry.
///
///
/// The [radius] and [theta] argument must not be null.
/// The [radius] and [theta] argument must not be null.
SectorHitTestEntry
(
RenderSector
target
,
{
required
this
.
radius
,
required
this
.
theta
})
SectorHitTestEntry
(
RenderSector
super
.
target
,
{
required
this
.
radius
,
required
this
.
theta
})
:
assert
(
radius
!=
null
),
:
assert
(
radius
!=
null
),
assert
(
theta
!=
null
),
assert
(
theta
!=
null
);
super
(
target
);
@override
@override
RenderSector
get
target
=>
super
.
target
as
RenderSector
;
RenderSector
get
target
=>
super
.
target
as
RenderSector
;
...
...
examples/layers/services/isolate.dart
View file @
91bcf420
...
@@ -197,7 +197,7 @@ class CalculationManager {
...
@@ -197,7 +197,7 @@ class CalculationManager {
// This is a StatefulWidget in order to hold the CalculationManager and
// This is a StatefulWidget in order to hold the CalculationManager and
// the AnimationController for the running animation.
// the AnimationController for the running animation.
class
IsolateExampleWidget
extends
StatefulWidget
{
class
IsolateExampleWidget
extends
StatefulWidget
{
const
IsolateExampleWidget
({
Key
?
key
})
:
super
(
key:
key
);
const
IsolateExampleWidget
({
super
.
key
}
);
@override
@override
IsolateExampleState
createState
()
=>
IsolateExampleState
();
IsolateExampleState
createState
()
=>
IsolateExampleState
();
...
...
examples/layers/services/lifecycle.dart
View file @
91bcf420
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
import
'package:flutter/widgets.dart'
;
import
'package:flutter/widgets.dart'
;
class
LifecycleWatcher
extends
StatefulWidget
{
class
LifecycleWatcher
extends
StatefulWidget
{
const
LifecycleWatcher
({
Key
?
key
})
:
super
(
key:
key
);
const
LifecycleWatcher
({
super
.
key
}
);
@override
@override
State
<
LifecycleWatcher
>
createState
()
=>
_LifecycleWatcherState
();
State
<
LifecycleWatcher
>
createState
()
=>
_LifecycleWatcherState
();
...
...
examples/layers/widgets/custom_render_box.dart
View file @
91bcf420
...
@@ -39,7 +39,7 @@ class RenderDots extends RenderConstrainedBox {
...
@@ -39,7 +39,7 @@ class RenderDots extends RenderConstrainedBox {
}
}
class
Dots
extends
SingleChildRenderObjectWidget
{
class
Dots
extends
SingleChildRenderObjectWidget
{
const
Dots
({
Key
?
key
,
Widget
?
child
})
:
super
(
key:
key
,
child:
child
);
const
Dots
({
super
.
key
,
super
.
child
}
);
@override
@override
RenderDots
createRenderObject
(
BuildContext
context
)
=>
RenderDots
();
RenderDots
createRenderObject
(
BuildContext
context
)
=>
RenderDots
();
...
...
examples/layers/widgets/gestures.dart
View file @
91bcf420
...
@@ -56,7 +56,7 @@ class _GesturePainter extends CustomPainter {
...
@@ -56,7 +56,7 @@ class _GesturePainter extends CustomPainter {
}
}
class
GestureDemo
extends
StatefulWidget
{
class
GestureDemo
extends
StatefulWidget
{
const
GestureDemo
({
Key
?
key
})
:
super
(
key:
key
);
const
GestureDemo
({
super
.
key
}
);
@override
@override
GestureDemoState
createState
()
=>
GestureDemoState
();
GestureDemoState
createState
()
=>
GestureDemoState
();
...
...
examples/layers/widgets/media_query.dart
View file @
91bcf420
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
class
AdaptedListItem
extends
StatelessWidget
{
class
AdaptedListItem
extends
StatelessWidget
{
const
AdaptedListItem
({
Key
?
key
,
required
this
.
name
})
:
super
(
key:
key
);
const
AdaptedListItem
({
super
.
key
,
required
this
.
name
}
);
final
String
name
;
final
String
name
;
...
@@ -26,7 +26,7 @@ class AdaptedListItem extends StatelessWidget {
...
@@ -26,7 +26,7 @@ class AdaptedListItem extends StatelessWidget {
}
}
class
AdaptedGridItem
extends
StatelessWidget
{
class
AdaptedGridItem
extends
StatelessWidget
{
const
AdaptedGridItem
({
Key
?
key
,
required
this
.
name
})
:
super
(
key:
key
);
const
AdaptedGridItem
({
super
.
key
,
required
this
.
name
}
);
final
String
name
;
final
String
name
;
...
@@ -65,7 +65,7 @@ const double _kMaxTileWidth = 150.0;
...
@@ -65,7 +65,7 @@ const double _kMaxTileWidth = 150.0;
const
double
_kGridViewBreakpoint
=
450.0
;
const
double
_kGridViewBreakpoint
=
450.0
;
class
AdaptiveContainer
extends
StatelessWidget
{
class
AdaptiveContainer
extends
StatelessWidget
{
const
AdaptiveContainer
({
Key
?
key
,
required
this
.
names
})
:
super
(
key:
key
);
const
AdaptiveContainer
({
super
.
key
,
required
this
.
names
}
);
final
List
<
String
>
names
;
final
List
<
String
>
names
;
...
...
examples/layers/widgets/sectors.dart
View file @
91bcf420
...
@@ -16,7 +16,7 @@ RenderBoxToRenderSectorAdapter initCircle() {
...
@@ -16,7 +16,7 @@ RenderBoxToRenderSectorAdapter initCircle() {
}
}
class
SectorApp
extends
StatefulWidget
{
class
SectorApp
extends
StatefulWidget
{
const
SectorApp
({
Key
?
key
})
:
super
(
key:
key
);
const
SectorApp
({
super
.
key
}
);
@override
@override
SectorAppState
createState
()
=>
SectorAppState
();
SectorAppState
createState
()
=>
SectorAppState
();
...
...
examples/layers/widgets/spinning_mixed.dart
View file @
91bcf420
...
@@ -17,7 +17,7 @@ void addFlexChildSolidColor(RenderFlex parent, Color backgroundColor, { int flex
...
@@ -17,7 +17,7 @@ void addFlexChildSolidColor(RenderFlex parent, Color backgroundColor, { int flex
// Solid color, Widget version
// Solid color, Widget version
class
Rectangle
extends
StatelessWidget
{
class
Rectangle
extends
StatelessWidget
{
const
Rectangle
(
this
.
color
,
{
Key
?
key
})
:
super
(
key:
key
);
const
Rectangle
(
this
.
color
,
{
super
.
key
}
);
final
Color
color
;
final
Color
color
;
...
...
examples/layers/widgets/spinning_square.dart
View file @
91bcf420
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
import
'package:flutter/widgets.dart'
;
import
'package:flutter/widgets.dart'
;
class
SpinningSquare
extends
StatefulWidget
{
class
SpinningSquare
extends
StatefulWidget
{
const
SpinningSquare
({
Key
?
key
})
:
super
(
key:
key
);
const
SpinningSquare
({
super
.
key
}
);
@override
@override
State
<
SpinningSquare
>
createState
()
=>
_SpinningSquareState
();
State
<
SpinningSquare
>
createState
()
=>
_SpinningSquareState
();
...
...
examples/layers/widgets/styled_text.dart
View file @
91bcf420
...
@@ -58,7 +58,7 @@ Widget toStyledText(String name, String text) {
...
@@ -58,7 +58,7 @@ Widget toStyledText(String name, String text) {
Widget
toPlainText
(
String
name
,
String
text
)
=>
Text
(
'
$name
:
$text
'
);
Widget
toPlainText
(
String
name
,
String
text
)
=>
Text
(
'
$name
:
$text
'
);
class
SpeakerSeparator
extends
StatelessWidget
{
class
SpeakerSeparator
extends
StatelessWidget
{
const
SpeakerSeparator
({
Key
?
key
})
:
super
(
key:
key
);
const
SpeakerSeparator
({
super
.
key
}
);
@override
@override
Widget
build
(
BuildContext
context
)
{
Widget
build
(
BuildContext
context
)
{
...
@@ -75,7 +75,7 @@ class SpeakerSeparator extends StatelessWidget {
...
@@ -75,7 +75,7 @@ class SpeakerSeparator extends StatelessWidget {
}
}
class
StyledTextDemo
extends
StatefulWidget
{
class
StyledTextDemo
extends
StatefulWidget
{
const
StyledTextDemo
({
Key
?
key
})
:
super
(
key:
key
);
const
StyledTextDemo
({
super
.
key
}
);
@override
@override
State
<
StyledTextDemo
>
createState
()
=>
_StyledTextDemoState
();
State
<
StyledTextDemo
>
createState
()
=>
_StyledTextDemoState
();
...
...
examples/platform_channel/lib/main.dart
View file @
91bcf420
...
@@ -8,7 +8,7 @@ import 'package:flutter/material.dart';
...
@@ -8,7 +8,7 @@ import 'package:flutter/material.dart';
import
'package:flutter/services.dart'
;
import
'package:flutter/services.dart'
;
class
PlatformChannel
extends
StatefulWidget
{
class
PlatformChannel
extends
StatefulWidget
{
const
PlatformChannel
({
Key
?
key
})
:
super
(
key:
key
);
const
PlatformChannel
({
super
.
key
}
);
@override
@override
State
<
PlatformChannel
>
createState
()
=>
_PlatformChannelState
();
State
<
PlatformChannel
>
createState
()
=>
_PlatformChannelState
();
...
...
examples/platform_channel/pubspec.yaml
View file @
91bcf420
name
:
platform_channel
name
:
platform_channel
environment
:
environment
:
sdk
:
"
>=2.1
2
.0-0
<3.0.0"
sdk
:
"
>=2.1
7
.0-0
<3.0.0"
dependencies
:
dependencies
:
flutter
:
flutter
:
...
...
examples/platform_channel_swift/lib/main.dart
View file @
91bcf420
...
@@ -8,7 +8,7 @@ import 'package:flutter/material.dart';
...
@@ -8,7 +8,7 @@ import 'package:flutter/material.dart';
import
'package:flutter/services.dart'
;
import
'package:flutter/services.dart'
;
class
PlatformChannel
extends
StatefulWidget
{
class
PlatformChannel
extends
StatefulWidget
{
const
PlatformChannel
({
Key
?
key
})
:
super
(
key:
key
);
const
PlatformChannel
({
super
.
key
}
);
@override
@override
State
<
PlatformChannel
>
createState
()
=>
_PlatformChannelState
();
State
<
PlatformChannel
>
createState
()
=>
_PlatformChannelState
();
...
...
examples/platform_channel_swift/pubspec.yaml
View file @
91bcf420
name
:
platform_channel_swift
name
:
platform_channel_swift
environment
:
environment
:
sdk
:
"
>=2.1
2
.0-0
<3.0.0"
sdk
:
"
>=2.1
7
.0-0
<3.0.0"
dependencies
:
dependencies
:
flutter
:
flutter
:
...
...
examples/platform_view/lib/main.dart
View file @
91bcf420
...
@@ -12,7 +12,7 @@ void main() {
...
@@ -12,7 +12,7 @@ void main() {
}
}
class
PlatformView
extends
StatelessWidget
{
class
PlatformView
extends
StatelessWidget
{
const
PlatformView
({
Key
?
key
})
:
super
(
key:
key
);
const
PlatformView
({
super
.
key
}
);
@override
@override
Widget
build
(
BuildContext
context
)
{
Widget
build
(
BuildContext
context
)
{
...
@@ -27,7 +27,7 @@ class PlatformView extends StatelessWidget {
...
@@ -27,7 +27,7 @@ class PlatformView extends StatelessWidget {
}
}
class
MyHomePage
extends
StatefulWidget
{
class
MyHomePage
extends
StatefulWidget
{
const
MyHomePage
({
Key
?
key
,
required
this
.
title
})
:
super
(
key:
key
);
const
MyHomePage
({
super
.
key
,
required
this
.
title
}
);
final
String
title
;
final
String
title
;
...
...
examples/platform_view/pubspec.yaml
View file @
91bcf420
name
:
platform_view
name
:
platform_view
environment
:
environment
:
sdk
:
"
>=2.1
2
.0-0
<3.0.0"
sdk
:
"
>=2.1
7
.0-0
<3.0.0"
dependencies
:
dependencies
:
flutter
:
flutter
:
...
...
examples/splash/pubspec.yaml
View file @
91bcf420
name
:
splash
name
:
splash
environment
:
environment
:
sdk
:
"
>=2.1
2
.0-0
<3.0.0"
sdk
:
"
>=2.1
7
.0-0
<3.0.0"
dependencies
:
dependencies
:
flutter
:
flutter
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment