Question: Explaining this flutter code during an interview - The label of this dart file is btn.dart - This dart file shows the style of the

Explaining this flutter code during an interview -

The label of this dart file is btn.dart - This dart file shows the style of the button in the flutter file.

import 'package:flutter/material.dart'; const text = TextStyle(fontWeight: FontWeight.bold, fontSize: 20, color: Colors.black); class Bt extends StatelessWidget { const Bt({Key? key, required this.text1}) : super(key: key); final String text1; @override Widget build(BuildContext context) { return TextButton( onPressed: () {}, style: TextButton.styleFrom( backgroundColor: Colors.deepOrange, shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(10), ), ), child: Text(text1, style: text), ); } }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!