-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: allow record types as params and return types (#4)
This allows more complex types to be used in return types and parameter types for bottom sheets, dialogs, and routes. Types like `(int, int, {String foobar})` or referenced types (imports from other files) are supported.
- Loading branch information
Showing
8 changed files
with
1,529 additions
and
41 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
packages/fluorflow/example/lib/bottom_sheets/complex_return_type.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import 'package:fluorflow/fluorflow.dart'; | ||
import 'package:flutter/material.dart'; | ||
|
||
class Foobar {} | ||
|
||
final class ComplexReturnTypeSheet | ||
extends FluorFlowSimpleBottomSheet<(int, {Foobar f})> { | ||
const ComplexReturnTypeSheet({super.key, required super.completer}); | ||
|
||
@override | ||
Widget build(BuildContext context) => const Placeholder(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.