Stack in Flutter - How Implement Stack in Flutter

 import 'package:flutter/material.dart';


void main() {
  runApp(MaterialApp(
    home: Scaffold(
        appBar: AppBar(
          title: Text(
            'My first FlutterApp',
            textDirection: TextDirection.ltr,
          ),
        ),
        body: Stack(
          children: [
            Image.asset('images/ahmad.jpg'),
            //
            Text(
              'this is my app',
              textDirection: TextDirection.ltr,
              style: TextStyle(fontSize: 30, color: Colors.blue),
            )
          ],
        )),
  ));
}

Comments

Popular Posts