import 'package:flutter/material.dart'; void main() { runApp(om()); } class om extends StatefulWidget { const om({super.key}); @override State<om> createState() => _omState(); } class _omState extends State<om> { @override Widget build(BuildContext context) { return MaterialApp( debugShowCheckedModeBanner: false, darkTheme: ThemeData.dark(), title: 'Om Namah Shivay', home: Scaffold( appBar: AppBar( centerTitle: true, backgroundColor: Colors.red, title: Text( 'Button', style: TextStyle(color: Colors.black), ), ), body: Center( child: ElevatedButton( style: ButtonStyle( fixedSize: WidgetStatePropertyAll(Size(100, 100)), shape: WidgetStatePropertyAll(RoundedRectangleBorder( side: BorderSide(color: Colors.white, width: 3), borderRadius: BorderRadius.only( topLeft: Radius.circular(50), bottomRight: Radius.circular(50)))), elevation: WidgetStatePropertyAll(5.0), backgroundColor: WidgetStatePropertyAll(Colors.red)), onPressed: () {}, child: Text( 'Click', style: TextStyle(color: Colors.black), )), ), ), ); } }
I understood
Top comments (0)