AppwinCommunityView class
The community feed, rendered natively, embedded in the Flutter tree.
This is the expected integration: a tab of the main bar showing the community full page.
Scaffold(
body: IndexedStack(
index: _index,
children: const [HomePage(), AppwinCommunityView(), ProfilePage()],
),
bottomNavigationBar: ...,
)
Call AppwinCore.instance.configure(appId: ...) and
AppwinCommunity.instance.initialize() before showing this widget.
While Community is not ready the native view shows a "coming soon" placeholder (with a diagnosis card in debug builds), and swaps to the feed by itself when the verdict changes. Pass unavailableBuilder to show your own UI instead.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- AppwinCommunityView
Constructors
- AppwinCommunityView({Key? key, VoidCallback? onEditProfile, VoidCallback? onEditProfilePhoto, VoidCallback? onEditProfileName})
-
Creates the feed. It sizes itself to its parent, so give it a slot with
real constraints: a tab body, not an unbounded column.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onEditProfile → VoidCallback?
-
Your own profile editor, in place of the SDK's: every place that would
open the SDK's editor (the edit button of the member's profile, "set up my
profile" in the composer) calls this instead.
final
- onEditProfileName → VoidCallback?
-
The name is managed by your app: tapping it in the SDK's editor calls
this instead of editing it in place, and the anonymity switch is hidden,
since going anonymous would replace your name with a generated one.
final
- onEditProfilePhoto → VoidCallback?
-
The photo is managed by your app: tapping it in the SDK's editor calls
this instead of opening the photo library. The rest of the profile stays
editable in the SDK.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
Your own UI for when Community is not ready, in place of the SDK's
placeholder.
final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited