Note: To configure this feature, you need to have a basic understanding of coding.
Used when you want to have attribute(s) or widget(s) built outside the home screen.
Examples:
- Show a text in center home screen (preview image)(preview gif)
- Prompt users to upgrade to your latest app version
Requirement
- Cirilla
v4.0.0
or above
Build widget
Open file: cirilla/lib/hooks/wrap_home_child.dart
Add the code snippets to the wrapHomeChild function:
return Stack(
children: [
child,
Positioned.fill(
child: Center(
child: Text(
"Wrap Home",
style: Theme.of(context).textTheme.displayMedium?.copyWith(color: Colors.white, backgroundColor: Colors.red),
),
),
),
],
);
Note
Have text widgets, you should setting style for this text