606 sao GitHub và vẫn tăng — rrousselGit/functional_widget là dự án Dart mà TopGit đang theo dõi trên nền tảng. A code generator to write widgets as function without loosing the benefits of classes.
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
Widgets can be override debugFillProperties to display custom fields on the widget inspector. functional_widget offer to generate these bits for your, by enabling debugFillProperties option.
For this to work, it is required to add the following import:
In any cases, you will need to install the corresponding package separately, by
adding either flutter_hooks/flutter_riverpod or hooks_riverpod to your pubspec.yaml
dependencies:
flutter_hooks: # some version number
All the potential function prototypes
functional_widget will inject widget specific parameters if you ask for them.
You can potentially write any of the following:
You can then add however many arguments you like after the previously defined arguments. They will then be added to the class constructor and as a widget field:
@swidget
Widget foo(BuildContext context, int value, { int value2 }) {
return Text('$value $value2');
}
// USAGE
Foo(42, value2: 24);
Private vs public widgets
In order to allow for private function definitions but exported widgets, all
decorated widget functions with a single underscore will generate an exported widget.
@swidget
Widget _foo(BuildContext context, int value, { int value2 }) {
return Text('$value $value2');
}
// USAGE
Foo(42, value2: 24);
In order to keep generated widget private, do use two underscores:
@swidget
Widget __foo(BuildContext context, int value, { int value2 }) {
return Text('$value $value2');
}
// USAGE
_Foo(42, value2: 24);
rrousselGit/functional_widget thuộc nhóm Mobile trên TopGit, cùng 5 topic GitHub. Trang Trending và Topics liệt kê các repo cùng số sao và cùng ngôn ngữ để so sánh.
Đọc thêm về rrousselGit/functional_widget ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/rrousselGit/functional_widget là nguồn chính thức.
rrousselGit/functional_widget có phải mã nguồn mở không?
TopGit chưa ghi nhận license cho rrousselGit/functional_widget. Phần lớn repo public trên GitHub là mã nguồn mở, nhưng điều khoản khác nhau từng repo — mở file LICENSE để xác nhận.
rrousselGit/functional_widget là gì?
rrousselGit/functional_widget (rrousselGit/functional_widget) là dự án Dart trên GitHub. Theo mô tả gốc: A code generator to write widgets as function without loosing the benefits of classes.
rrousselGit/functional_widget so với các dự án Mobile khác thế nào?
rrousselGit/functional_widget được TopGit xếp vào nhóm Mobile, với 606 sao GitHub và viết bằng Dart. Xem trang chủ đề Mobile trên TopGit để so sánh với các dự án tương tự theo số sao và mức độ hoạt động.
Vì sao rrousselGit/functional_widget được xếp vào nhóm Mobile?
TopGit xếp rrousselGit/functional_widget vào nhóm Mobile dựa trên GitHub topics và mô tả của repo (gắn thẻ: "code-generator", "dart", "flutter"). Việc phân loại dựa trên metadata thật của repo, không phải đoán theo cảm tính biên tập.
Đọc đầy đủ README ở tab phía trên.
Vẫn đang phân vân về functional_widget?
Một cú bấm sẽ gửi câu hỏi kèm trang này cho AI — xem AI nói gì về functional_widget.