-
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.
- Loading branch information
1 parent
138773b
commit 475d7dd
Showing
18 changed files
with
402 additions
and
158 deletions.
There are no files selected for viewing
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
22 changes: 22 additions & 0 deletions
22
example/lib/src/component_library/components/wrap/wrap_library_item.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,22 @@ | ||
import 'package:impaktfull_ui_example/src/component_library/components/wrap/wrap_library_variant.dart'; | ||
import 'package:impaktfull_ui_example/src/component_library/config/component_library_inputs.dart'; | ||
import 'package:impaktfull_ui_example/src/component_library/config/component_library_item.dart'; | ||
|
||
class WrapLibraryItem extends ComponentLibraryItem { | ||
const WrapLibraryItem(); | ||
|
||
@override | ||
String get title => 'ImpaktfullUiWrap'; | ||
|
||
@override | ||
List<ComponentLibraryVariant> getComponentVariants() { | ||
return [ | ||
const WrapLibraryVariant(), | ||
]; | ||
} | ||
} | ||
|
||
class WrapLibraryInputs extends ComponentLibraryInputs { | ||
@override | ||
List<ComponentLibraryInputItem> buildInputItems() => []; | ||
} |
35 changes: 35 additions & 0 deletions
35
example/lib/src/component_library/components/wrap/wrap_library_variant.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,35 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:impaktfull_ui_2/impaktfull_ui.dart'; | ||
import 'package:impaktfull_ui_example/src/component_library/components/wrap/wrap_library_item.dart'; | ||
import 'package:impaktfull_ui_example/src/component_library/config/component_library_item.dart'; | ||
|
||
class WrapLibraryVariant | ||
extends ComponentLibraryVariant<WrapLibraryPrimaryInputs> { | ||
const WrapLibraryVariant(); | ||
|
||
@override | ||
String get title => 'Default'; | ||
|
||
@override | ||
List<Widget> build(BuildContext context, WrapLibraryPrimaryInputs inputs) { | ||
return [ | ||
ImpaktfullUiWrap( | ||
spacing: 8, | ||
runSpacing: 8, | ||
children: [ | ||
for (var i = 0; i < 100; ++i) ...[ | ||
ImpaktfullUiBadge( | ||
type: ImpaktfullUiBadgeType.primary, | ||
label: 'Item $i', | ||
), | ||
], | ||
], | ||
), | ||
]; | ||
} | ||
|
||
@override | ||
WrapLibraryPrimaryInputs inputs() => WrapLibraryPrimaryInputs(); | ||
} | ||
|
||
class WrapLibraryPrimaryInputs extends WrapLibraryInputs {} |
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
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.