Skip to content

Commit a856460

Browse files
committed
Remove Explicit Widget Type
1 parent 0d0a3cc commit a856460

File tree

4 files changed

+18
-18
lines changed

4 files changed

+18
-18
lines changed

lib/components/blog.dart

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class TagWrapper extends StatelessWidget {
4040
child: Wrap(
4141
spacing: 8,
4242
runSpacing: 0,
43-
children: <Widget>[...tags],
43+
children: [...tags],
4444
));
4545
}
4646
}
@@ -142,7 +142,7 @@ List<Widget> authorSection({String? imageUrl, String? name, String? bio}) {
142142
Container(
143143
padding: const EdgeInsets.symmetric(vertical: 40),
144144
child: Row(
145-
children: <Widget>[
145+
children: [
146146
if (imageUrl != null)
147147
Container(
148148
margin: const EdgeInsets.only(right: 25),
@@ -160,7 +160,7 @@ List<Widget> authorSection({String? imageUrl, String? name, String? bio}) {
160160
),
161161
Expanded(
162162
child: Column(
163-
children: <Widget>[
163+
children: [
164164
if (name != null)
165165
Align(
166166
alignment: Alignment.centerLeft,
@@ -193,9 +193,9 @@ class PostNavigation extends StatelessWidget {
193193
Widget build(BuildContext context) {
194194
return Row(
195195
mainAxisAlignment: MainAxisAlignment.spaceBetween,
196-
children: <Widget>[
196+
children: [
197197
Row(
198-
children: <Widget>[
198+
children: [
199199
const Icon(
200200
Icons.keyboard_arrow_left,
201201
size: 25,
@@ -206,7 +206,7 @@ class PostNavigation extends StatelessWidget {
206206
),
207207
const Spacer(),
208208
Row(
209-
children: <Widget>[
209+
children: [
210210
Text("NEXT POST", style: buttonTextStyle),
211211
const Icon(
212212
Icons.keyboard_arrow_right,
@@ -227,9 +227,9 @@ class ListNavigation extends StatelessWidget {
227227
Widget build(BuildContext context) {
228228
return Row(
229229
mainAxisAlignment: MainAxisAlignment.spaceBetween,
230-
children: <Widget>[
230+
children: [
231231
Row(
232-
children: <Widget>[
232+
children: [
233233
const Icon(
234234
Icons.keyboard_arrow_left,
235235
size: 25,
@@ -241,7 +241,7 @@ class ListNavigation extends StatelessWidget {
241241
),
242242
const Spacer(),
243243
Row(
244-
children: <Widget>[
244+
children: [
245245
if (ResponsiveBreakpoints.of(context).largerThan(MOBILE))
246246
Text("OLDER POSTS", style: buttonTextStyle),
247247
const Icon(
@@ -284,7 +284,7 @@ class ListItem extends StatelessWidget {
284284
@override
285285
Widget build(BuildContext context) {
286286
return Column(
287-
children: <Widget>[
287+
children: [
288288
if (imageUrl != null)
289289
ImageWrapper(
290290
image: imageUrl!,
@@ -339,11 +339,11 @@ class MinimalMenuBar extends StatelessWidget {
339339
Widget build(BuildContext context) {
340340
return Column(
341341
mainAxisSize: MainAxisSize.min,
342-
children: <Widget>[
342+
children: [
343343
Container(
344344
margin: const EdgeInsets.symmetric(vertical: 30),
345345
child: Row(
346-
children: <Widget>[
346+
children: [
347347
InkWell(
348348
hoverColor: Colors.transparent,
349349
highlightColor: Colors.transparent,
@@ -371,7 +371,7 @@ class MinimalMenuBar extends StatelessWidget {
371371
child: Container(
372372
alignment: Alignment.centerRight,
373373
child: Wrap(
374-
children: <Widget>[
374+
children: [
375375
TextButton(
376376
onPressed: () => Navigator.popUntil(context,
377377
ModalRoute.withName(Navigator.defaultRouteName)),

lib/pages/page_list.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ class ListPage extends StatelessWidget {
1515
Widget build(BuildContext context) {
1616
return Scaffold(
1717
body: Stack(
18-
children: <Widget>[
18+
children: [
1919
SingleChildScrollView(
2020
child: Container(
2121
margin: const EdgeInsets.symmetric(horizontal: 32),
2222
child: Column(
23-
children: <Widget>[
23+
children: [
2424
const MinimalMenuBar(),
2525
const ListItem(
2626
imageUrl:

lib/pages/page_post.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class PostPage extends StatelessWidget {
1313
child: Container(
1414
margin: const EdgeInsets.symmetric(horizontal: 32),
1515
child: Column(
16-
children: <Widget>[
16+
children: [
1717
const MinimalMenuBar(),
1818
const ImageWrapper(
1919
image: "assets/images/mugs_side_bw_w1080.jpg",

lib/pages/page_typography.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ class TypographyPage extends StatelessWidget {
1010
Widget build(BuildContext context) {
1111
return Scaffold(
1212
body: Stack(
13-
children: <Widget>[
13+
children: [
1414
SingleChildScrollView(
1515
child: Container(
1616
margin: const EdgeInsets.symmetric(horizontal: 32),
1717
child: Column(
18-
children: <Widget>[
18+
children: [
1919
const MinimalMenuBar(),
2020
Align(
2121
alignment: Alignment.center,

0 commit comments

Comments
 (0)