FluttingAction Buttion
It is a rounded shape widget that floats on the screen.
Properites
- child
- tooltip
- foregroundColor
- backgroundColor
- hoverColor
- splashColor
- elevation
Coding Example
import 'package:flutter/material.dart';
void main(List<String> args) {
runApp(MaterialApp(
home: Scaffold(
backgroundColor: Colors.white,
body: Center(
child: FloatingActionButton(
child: Text(
"Ok",
style: TextStyle(fontSize: 19),
),
tooltip: "Add buttion",
elevation: 50,
backgroundColor: Colors.red,
foregroundColor: Colors.black,
hoverColor: Colors.amber,
splashColor: Colors.white,
onPressed: () {}),
),
),
));
}
No comments:
Post a Comment