0% found this document useful (0 votes)
6 views

calculator

This document contains a Flutter application that creates a simple user interface for adding two numbers. It includes two text fields for user input, a button for addition, and displays the result. The app features a red app bar and uses a column layout for organizing the widgets.

Uploaded by

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

calculator

This document contains a Flutter application that creates a simple user interface for adding two numbers. It includes two text fields for user input, a button for addition, and displays the result. The app features a red app bar and uses a column layout for organizing the widgets.

Uploaded by

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

import 'package:flutter/material.

dart';

void main() {
runApp(MaterialApp(
home:MyApp()
)); // MaterialApp
}

class MyApp extends StatelessWidget {


const MyApp({super.key});

@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title : Text('GOOD MORNING '),
backgroundColor: Colors.red.shade900,
), // AppBar
body: Column(
children: [
SizedBox(
height: 15,
),
TextField(
decoration: InputDecoration(
labelText: "Enter The First Number",
border: OutlineInputBorder(
borderRadius: BorderRadius.circular(10000)
), // OutlineInputBorder
), //InputDecoration
), // TextField
SizedBox(
height: 20,
),
TextField(
decoration: InputDecoration(
labelText: "Enter The Second Number",
border: OutlineInputBorder(
borderRadius: BorderRadius.circular(10000)
), // OutlineInputBorder
),// InputDecoration
),// TextField
SizedBox(
height: 20),
ElevatedButton(onPressed: (){}, child: Text('+')),
SizedBox(height: 20,),
Text('The Addition Is:',
style: TextStyle(
fontSize: 20,
fontWeight: FontWeight.bold,
color: Colors.orange
),
)
],
) // Column
); // Scaffold
}
}

You might also like