Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ analyzer:
- "**.g.dart"
- "**.config.dart"
- "**.navigator.dart"
- "**.ui_playground.dart"
language:
strict-casts: true
strict-raw-types: true
Expand Down
8 changes: 8 additions & 0 deletions example/lib/src/screen/home/home_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import 'package:flutter/material.dart';
import 'package:impaktfull_ui/impaktfull_ui.dart';
import 'package:impaktfull_ui_example/src/navigator/navigator.dart';
import 'package:impaktfull_ui_example/src/screen/settings/settings_screen.dart';
import 'package:impaktfull_ui_example/src/screen/ui_playground/ui_playground_screen.dart';
import 'package:impaktfull_ui_example/src/widget/home/action_card.dart';
import 'package:phosphor_flutter/phosphor_flutter.dart';

class HomeScreen extends StatelessWidget {
const HomeScreen({super.key});
Expand Down Expand Up @@ -62,6 +64,12 @@ class HomeScreen extends StatelessWidget {
),
onTap: () => ImpaktfullUiNavigator.instance.goToExamples(),
),
ActionCard(
label: 'UI Playground',
asset: ImpaktfullUiAsset.icon(PhosphorIcons.book()),
onTap: () => Navigator.of(context).push(MaterialPageRoute(
builder: (context) => const UiPlaygroundScreen())),
),
],
itemBuilder: (context, item, index) => item,
),
Expand Down
17 changes: 17 additions & 0 deletions example/lib/src/screen/ui_playground/ui_playground_screen.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import 'package:flutter/material.dart';
import 'package:impaktfull_ui_example/src/ui_playground/impaktfull_ui_components.dart';
import 'package:ui_playground/ui_playground.dart';

class UiPlaygroundScreen extends StatelessWidget {
const UiPlaygroundScreen({super.key});

@override
Widget build(BuildContext context) {
return UiPlaygroundApp(title: "UI Playground", sections: [
UiPlaygroundSection(
title: "Components",
items: AppComponents.items,
),
]);
}
}
22 changes: 22 additions & 0 deletions example/lib/src/ui_playground/impaktfull_ui_components.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import 'package:impaktfull_ui/impaktfull_ui.dart';
import 'package:impaktfull_ui_example/src/ui_playground/impaktfull_ui_components.ui_playground.dart';
import 'package:ui_playground/ui_playground.dart';

@UiPlaygroundComponents(
extraComponents: [
UiPlaygroundComponentConfig(
ImpaktfullUiButton,
excludeParams: [
'leadingAsset',
'trailingAsset',
'leadingChild',
'trailingChild',
'theme',
],
)
],
)
class AppComponents {
static List<UiPlaygroundItem> get items =>
GeneratedUiPlaygroundComponents.items;
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading