Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
7 views2 pages

Currency Converter

The document contains a Flutter widget named 'Home' that sets up a user interface with a blue-grey background. It includes a large text display initialized to '0', a text field for number input, and a 'Convert' button. The layout is structured using a Column widget with appropriate styling for text and borders.

Uploaded by

said said
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views2 pages

Currency Converter

The document contains a Flutter widget named 'Home' that sets up a user interface with a blue-grey background. It includes a large text display initialized to '0', a text field for number input, and a 'Convert' button. The layout is structured using a Column widget with appropriate styling for text and borders.

Uploaded by

said said
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

import 'package:flutter/material.

dart';

class Home extends StatelessWidget {


const Home({super.key});

@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.blueGrey,
body: SafeArea(
child: Column(
mainAxisAlignment: MainAxisAlignment.start,
children: [
Container(
margin: EdgeInsets.only(top: 160),
alignment: Alignment.center,
child: Text(
"0",
style: TextStyle(
color: Colors.white,
fontSize: 100,
fontWeight: FontWeight.bold),
),
),
SizedBox(height: 20),
TextField(
style: TextStyle(
color: Colors.white,
fontSize: 15,
),
keyboardType: TextInputType.number,
decoration: InputDecoration(
label: Text(
"Enter the number",
style: TextStyle(color: Colors.white, fontSize: 20),
),
enabledBorder: OutlineInputBorder(
borderSide: BorderSide(color: Colors.black, width: 2),
borderRadius: BorderRadius.circular(10),
),
focusedBorder: UnderlineInputBorder(
borderSide: BorderSide(color: Colors.black, width: 3),
),
),
),
SizedBox(
height: 100,
),
ElevatedButton(
style: ElevatedButton.styleFrom(primary: Colors.black),
onPressed: () {},
child: Text(
"Convert",
style: TextStyle(
color: Colors.white,
),
),
),
],
),
),
);
}
}

You might also like