Wanted to know how could i achieve this inside a Container 
return Column(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
Container(
width: width,
height: height / 3,
decoration: BoxDecoration(
border: Border.all(
color: Colors.black,
width: 3,
),
),
),
CodePudding user response:
Check Solution below its help you.
Column(
mainAxisAlignment: MainAxisAlignment.start,
children:[
Row(children:[
Text("Name"),Spacer(),Text("Abc")
]),
Row(children:[
Text("class"),Spacer(),Text("2nd")
])
])
CodePudding user response:
Maybe this can help you
Container(
width: 100,
height: 100,
decoration: BoxDecoration(
border: Border.all(
color: Colors.black,
width: 3,
),
),
child: Column(
children: [
Padding(
padding: const EdgeInsets.all(8.0),
child: Row(
children: [
Text("a"),
Spacer(flex: 1,),
Text("B")
],
),
),
Padding(
padding: const EdgeInsets.all(8.0),
child: Row(
children: [
Text("a"),
Spacer(flex: 1,),
Text("B")
],
),
),
Padding(
padding: const EdgeInsets.all(8.0),
child: Row(
children: [
Text("a"),
Spacer(flex: 1,),
Text("B")
],
),
),
],
),
);
OR
Container(
width: 100,
height: 100,
decoration: BoxDecoration(
border: Border.all(
color: Colors.black,
width: 3,
),
),
child: Column(
children: [
Padding(
padding: const EdgeInsets.all(8.0),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text("a"),
Text("B")
],
),
),
Padding(
padding: const EdgeInsets.all(8.0),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text("a"),
Text("B")
],
),
),
Padding(
padding: const EdgeInsets.all(8.0),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text("a"),
Text("B")
],
),
),
],
),
);
parameters set your according
Two Way

