Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a05beba

Browse files
Created Desc section
1 parent 6fbaae6 commit a05beba

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

‎building_layouts/lib/main.dart‎

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import 'package:flutter/material.dart';
22

3+
String descriptionText ="Build the row containing these columns by calling the function and passing the color, Icon, and text specific to that column. Align the columns along the main axis using MainAxisAlignment.spaceEvenly to arrange the free space evenly before, between, and after each column. Add the following code just below the titleSection declaration inside the build() method:";
4+
35
void main() => runApp(MaterialApp(
46
title: "Building layout Demo",
57
home: Scaffold(
@@ -8,6 +10,7 @@ void main() => runApp(MaterialApp(
810
children: [
911
titleSection,
1012
buttonSection,
13+
descriptionSection,
1114
],
1215
),
1316
),
@@ -49,15 +52,15 @@ Widget buttonSection = Container(
4952
child: Row(
5053
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
5154
children: [
52-
createButtonClumn(Icons.mail, "Mail"),
53-
createButtonClumn(Icons.print, "Print"),
54-
createButtonClumn(Icons.add, "Add")
55+
createButtonColumn(Icons.mail, "Mail"),
56+
createButtonColumn(Icons.print, "Print"),
57+
createButtonColumn(Icons.add, "Add")
5558
],
5659
),
5760
);
5861

5962

60-
Column createButtonClumn(IconData iconData, String iconName){
63+
Column createButtonColumn(IconData iconData, String iconName){
6164

6265
return Column(
6366
children: [
@@ -71,5 +74,10 @@ Column createButtonClumn(IconData iconData, String iconName){
7174

7275
}
7376

77+
Widget descriptionSection = Container(
78+
padding: EdgeInsets.fromLTRB(32, 0, 32, 0),
79+
child: Text(descriptionText),
80+
);
81+
7482

7583

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /