Horje
stack alignment in flutter Code Example
flutter align widget in stack
Stack(
  children: <Widget>[      
    Positioned.fill(
      child: Align(
        alignment: Alignment.centerRight,
        child: ....                
      ),
    ),
  ],
),
stack alignment in flutter
SizedBox(
  width: 250,
  height: 250,
  child: Stack(
    children: <Widget>[
      Container(
        width: 250,
        height: 250,
        color: Colors.white,
      ),
      Container(
        padding: const EdgeInsets.all(5.0),
        alignment: Alignment.bottomCenter,
        decoration: BoxDecoration(
          gradient: LinearGradient(
            begin: Alignment.topCenter,
            end: Alignment.bottomCenter,
            colors: <Color>[
              Colors.black.withAlpha(0),
              Colors.black12,
              Colors.black45
            ],
          ),
        ),
        child: const Text(
          'Foreground Text',
          style: TextStyle(color: Colors.white, fontSize: 20.0),
        ),
      ),
    ],
  ),
)




Whatever

Related
dinosaurs Code Example dinosaurs Code Example
cmd echo datetime in loop Code Example cmd echo datetime in loop Code Example
how to post a file httpie Code Example how to post a file httpie Code Example
switch quickly alt tab Code Example switch quickly alt tab Code Example
modern warfare mod minecraft black screen Code Example modern warfare mod minecraft black screen Code Example

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