Home > database >  new learner trying to get floting button
new learner trying to get floting button

Time:04-23

import 'package:flutter/material.dart';

void main() {
  runApp(MaterialApp(home: Center(
    child:Scaffold(
      floatingActionButton: FloatingActionButton(
        child: Icon(Icon.add),
        onPressed: () {},
      ),
      ),
      appBar: AppBar(centerTitle: true,
        title: const Text('hello world'),
    ) ,
      body: const Center(child: Text('hello guys'),),
      ),

  ));

}

image

  • Related