Hi I’m trying to create button for my App using flutter but isn’t working I used floatingActionButton: FloatingActionButton(
Child:Text(‘click’),
)’ this is the code that I used but still not working
import ‘package:flutter/material.dart’;
void main() {
runApp(MaterialApp(
home: Scaffold(
appBar: AppBar(
title: Text(‘Waybill App’),
centerTitle: true,
),
body: Center(
child: Text(‘Welcome to Waybill Me’),
),
floatingActionButton: FloatingActionButton(
child: Text(‘click’),
),
),
),
),
));
}
Muhammad Rabiu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.