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!
Asked
Active
Viewed 128 times
-1
-
what you want to build ? – Rohit Soni Feb 14 '20 at 11:16
-
This one- https://i.stack.imgur.com/5msVK.jpg – kasun viduranga Feb 14 '20 at 11:26
-
okay, i post widgets code – Rohit Soni Feb 14 '20 at 11:28
-
https://stackoverflow.com/questions/47504574/is-it-possible-to-build-android-widgets-in-flutter – Feb 14 '20 at 11:31
2 Answers
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