flutter
import 'package:flutter/material.dart';
void main() {
runApp(MaterialApp(debugShowCheckedModeBanner: false, home: Hi()));
}
class Hi extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
centerTitle: true,
title: Text("My first App"),
backgroundColor: Colors.red[700],
),
body: Column(
children: [
Center(
child: Image.network(
'https://static.remove.bg/remove-bg-web/2a274ebbb5879d870a69caae33d94388a88e0e35/assets/start_remove-79a4598a05a77ca999df1dcb434160994b6fde2c3e9101984fb1be0f16d0a74e.png'),
),
Image.asset('assets/2.jpg'),
Center(
child: Text(
"hello ninjas",
style: TextStyle(
fontSize: 20,
color: Colors.grey.shade600,
fontWeight: FontWeight.bold,
letterSpacing: 2.5,
fontFamily: "IndieFlower",
),
),
),
],
),
floatingActionButton: FloatingActionButton(
onPressed: () {},
backgroundColor: Colors.red[900],
child: Text("Click"),
),
);
}
}
Comments
Post a Comment