Reputation: 1
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
class login_screen extends StatelessWidget {
const login_screen({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
bottomSheet: const Text(
'Hello',
),
appBar: AppBar(),
title: const Text(
'Hello',
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children:
[
Row(
children:
[
Column(
mainAxisSize: MainAxisSize.max,
mainAxisAlignment: MainAxisAlignment.center,
children:
const [
Text(
'Hello AbdelAzim',
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: 30,
),
),
],
),
],
),
],
),
),
);
}
}
Upvotes: 0
Views: 1628
Reputation: 14775
Just Change your appBar like below hope its help to you,and run your app
appBar: AppBar(
title: const Text(
'Hello',
),
),
Upvotes: 2