-1

View screen shot here

I need to build this kind of widget to my flutter application.The widget should be can bring across the screen. is its possible? Then How can I do that? Thanks in advance!

Vrushi Patel
  • 2,361
  • 1
  • 17
  • 30

2 Answers2

0

Actually, Flutter can't create this type of widget (widget that you can add on your Home Screen) because Flutter uses his own custom rendering engine.

NqbraL
  • 553
  • 4
  • 8
-1
import 'package:flutter/material.dart';

    void main() {
        runApp(MyApp());
    }

    class MyApp extends StatelessWidget {

    @override
    Widget build(BuildContext context) {

    return MaterialApp(
        home: Scaffold(
            appBar: AppBar(
            title: Text(“First Widgets")),
        body: myWidget(),
        ),  
        );
      }
    }

    Widget myWidget() {
      return Text(
        "Hello, World!",
      );
    }
}
Rohit Soni
  • 1,300
  • 6
  • 12