Skip to content

Commit 5b24c90

Browse files
committed
dart format
1 parent dbf6d23 commit 5b24c90

File tree

8 files changed

+24
-18
lines changed

8 files changed

+24
-18
lines changed

intro_flutter_gpu/step_11/lib/main.dart

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,9 @@ class TrianglePainter extends CustomPainter {
103103
);
104104

105105
// Create model matrix with multiple rotations
106-
final model =
107-
vm.Matrix4.identity()
108-
..rotateY(angle)
109-
..rotateX(angle / 2);
106+
final model = vm.Matrix4.identity()
107+
..rotateY(angle)
108+
..rotateX(angle / 2);
110109

111110
// Move camera back a bit more for better view
112111
final view = vm.Matrix4.translation(vm.Vector3(0.0, 0.0, -2.5));

tfrs-flutter/finished/frontend/lib/main.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,9 @@ class _RecommenderDemoState extends State<RecommenderDemo> {
103103
itemCount: _movieList.length,
104104
itemBuilder: (context, index) {
105105
return ListTile(
106-
leading:
107-
_movieList.isEmpty ? null : const FlutterLogo(),
106+
leading: _movieList.isEmpty
107+
? null
108+
: const FlutterLogo(),
108109
title: Text(_movieList[index]),
109110
);
110111
},

tfrs-flutter/step0/frontend/lib/main.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,9 @@ class _RecommenderDemoState extends State<RecommenderDemo> {
9292
itemCount: _movieList.length,
9393
itemBuilder: (context, index) {
9494
return ListTile(
95-
leading:
96-
_movieList.isEmpty ? null : const FlutterLogo(),
95+
leading: _movieList.isEmpty
96+
? null
97+
: const FlutterLogo(),
9798
title: Text(_movieList[index]),
9899
);
99100
},

tfrs-flutter/step1/frontend/lib/main.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,9 @@ class _RecommenderDemoState extends State<RecommenderDemo> {
9292
itemCount: _movieList.length,
9393
itemBuilder: (context, index) {
9494
return ListTile(
95-
leading:
96-
_movieList.isEmpty ? null : const FlutterLogo(),
95+
leading: _movieList.isEmpty
96+
? null
97+
: const FlutterLogo(),
9798
title: Text(_movieList[index]),
9899
);
99100
},

tfrs-flutter/step2/frontend/lib/main.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,9 @@ class _RecommenderDemoState extends State<RecommenderDemo> {
9292
itemCount: _movieList.length,
9393
itemBuilder: (context, index) {
9494
return ListTile(
95-
leading:
96-
_movieList.isEmpty ? null : const FlutterLogo(),
95+
leading: _movieList.isEmpty
96+
? null
97+
: const FlutterLogo(),
9798
title: Text(_movieList[index]),
9899
);
99100
},

tfrs-flutter/step3/frontend/lib/main.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,9 @@ class _RecommenderDemoState extends State<RecommenderDemo> {
9292
itemCount: _movieList.length,
9393
itemBuilder: (context, index) {
9494
return ListTile(
95-
leading:
96-
_movieList.isEmpty ? null : const FlutterLogo(),
95+
leading: _movieList.isEmpty
96+
? null
97+
: const FlutterLogo(),
9798
title: Text(_movieList[index]),
9899
);
99100
},

tfrs-flutter/step4/frontend/lib/main.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,9 @@ class _RecommenderDemoState extends State<RecommenderDemo> {
103103
itemCount: _movieList.length,
104104
itemBuilder: (context, index) {
105105
return ListTile(
106-
leading:
107-
_movieList.isEmpty ? null : const FlutterLogo(),
106+
leading: _movieList.isEmpty
107+
? null
108+
: const FlutterLogo(),
108109
title: Text(_movieList[index]),
109110
);
110111
},

tfrs-flutter/step5/frontend/lib/main.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,9 @@ class _RecommenderDemoState extends State<RecommenderDemo> {
103103
itemCount: _movieList.length,
104104
itemBuilder: (context, index) {
105105
return ListTile(
106-
leading:
107-
_movieList.isEmpty ? null : const FlutterLogo(),
106+
leading: _movieList.isEmpty
107+
? null
108+
: const FlutterLogo(),
108109
title: Text(_movieList[index]),
109110
);
110111
},

0 commit comments

Comments
 (0)