Horje
flutter align widget Code Example
flutter align top right
Align(
  alignment: Alignment.topRight,
  child: Text("widget"),
)
flutter align widget
Center(
        child: Container(
          color: Colors.blue[100], 
          height: 200.0,
          width: 200.0,
          child: Align(
            alignment: Alignment.center, // or AlignmentDirectional.center,
                     //Alignment(0.0,0.0) value must be 1 to -1
            child: Text('Align')
          )
        ),
      )
Align widget
Center(
  child: Container(
    height: 120.0,
    width: 120.0,
    color: Colors.blue[50],
    child: Align(
      alignment: Alignment(0.5, 0.6),
      child: FlutterLogo(
        size: 60,
      ),
    ),
  ),
)




Dart

Related
flutter transparent color Code Example flutter transparent color Code Example
flutter tooltip circle border Code Example flutter tooltip circle border Code Example
dart move item in list Code Example dart move item in list Code Example
math.round dart Code Example math.round dart Code Example
flutter textfield pad number only Code Example flutter textfield pad number only Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7