Tuesday, July 11, 2023

FloatingAction Buttion in Flutter

 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

Linked List Implementation using C++ Structure

3 Nodes Linked List Implementaion Single Linked list #include<iostream> using namespace std;   struct Node{ int data; Node* next; Node...