-
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: Added extra components & a more complete UI library
- Loading branch information
1 parent
fa1d898
commit 74cc65f
Showing
25 changed files
with
636 additions
and
94 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,7 +1,9 @@ | ||
import 'package:impaktfull_ui/impaktfull_ui.dart'; | ||
import 'package:impaktfull_ui_example/src/screen/home_screen.dart'; | ||
|
||
void main() => runApp(const ImpaktfullApp( | ||
title: 'Impaktfull UI Example', | ||
home: HomeScreen(), | ||
)); | ||
void main() => runApp( | ||
const ImpaktfullApp( | ||
title: 'Impaktfull UI Example', | ||
home: HomeScreen(), | ||
), | ||
); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import 'package:impaktfull_ui/impaktfull_ui.dart'; | ||
import 'package:impaktfull_ui_example/src/util/snacky_uitl.dart'; | ||
|
||
class ListItemScreen extends StatelessWidget { | ||
const ListItemScreen({ | ||
super.key, | ||
}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return ImpaktfullThemeLocalizer( | ||
builder: (context, theme) => ImpaktfullScreen( | ||
title: 'Components - List Item', | ||
onBackTapped: () => Navigator.of(context).pop(), | ||
child: ImpaktfullListView( | ||
children: [ | ||
const ImpaktfullListItem(title: 'Some title'), | ||
const ImpaktfullListItem( | ||
title: 'Some title', | ||
subTitle: 'Some subtitle', | ||
), | ||
ImpaktfullListItem( | ||
title: 'Some title', | ||
subTitle: 'Some subtitle', | ||
onTap: () => SnackyUtil.show('on tap'), | ||
), | ||
ImpaktfullListItem( | ||
title: 'Some title', | ||
subTitle: 'Some subtitle', | ||
onAsyncTap: () async { | ||
await Future.delayed(const Duration(seconds: 2)); | ||
}, | ||
), | ||
ImpaktfullListItem( | ||
title: 'Some title', | ||
subTitle: 'Some subtitle', | ||
leadingAsset: theme.assets.icons.check, | ||
), | ||
], | ||
), | ||
), | ||
); | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
example/lib/src/screen/components/list_item_title_screen.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/impaktfull_ui.dart'; | ||
|
||
class ListItemTitleScreen extends StatelessWidget { | ||
const ListItemTitleScreen({ | ||
super.key, | ||
}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return ImpaktfullThemeLocalizer( | ||
builder: (context, theme) => ImpaktfullScreen( | ||
title: 'Components - List Item Title', | ||
onBackTapped: () => Navigator.of(context).pop(), | ||
child: const ImpaktfullListView( | ||
children: [ | ||
ImpaktfullListItemTitle(title: 'Some title'), | ||
], | ||
), | ||
), | ||
); | ||
} | ||
} |
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
38 changes: 38 additions & 0 deletions
38
example/lib/src/screen/components/selectable_list_item_screen.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,38 @@ | ||
import 'package:impaktfull_ui/impaktfull_ui.dart'; | ||
import 'package:impaktfull_ui_example/src/util/snacky_uitl.dart'; | ||
|
||
class SelectableListItemScreen extends StatelessWidget { | ||
const SelectableListItemScreen({ | ||
super.key, | ||
}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return ImpaktfullThemeLocalizer( | ||
builder: (context, theme) => ImpaktfullScreen( | ||
title: 'Components - Selectable List Item', | ||
onBackTapped: () => Navigator.of(context).pop(), | ||
child: ImpaktfullListView( | ||
children: [ | ||
ImpaktfullSelectableListItem( | ||
title: 'Some title', | ||
isSelected: true, | ||
onTap: () => SnackyUtil.show('On tap'), | ||
), | ||
ImpaktfullSelectableListItem( | ||
title: 'Some title', | ||
isSelected: false, | ||
onTap: () => SnackyUtil.show('On tap'), | ||
), | ||
ImpaktfullSelectableListItem( | ||
title: 'Some title', | ||
isSelected: true, | ||
leadingAsset: theme.assets.icons.arrowLeft, | ||
onTap: () => SnackyUtil.show('On tap'), | ||
), | ||
], | ||
), | ||
), | ||
); | ||
} | ||
} |
41 changes: 41 additions & 0 deletions
41
example/lib/src/screen/components/separated_column_screen.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,41 @@ | ||
import 'package:impaktfull_ui/impaktfull_ui.dart'; | ||
|
||
class SeparatedColumnScreen extends StatelessWidget { | ||
const SeparatedColumnScreen({ | ||
super.key, | ||
}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return ImpaktfullThemeLocalizer( | ||
builder: (context, theme) => ImpaktfullScreen( | ||
title: 'Components - SeparatedColumn', | ||
onBackTapped: () => Navigator.of(context).pop(), | ||
child: const ImpaktfullListView( | ||
children: [ | ||
ImpaktfullSeparatedColumn( | ||
children: [ | ||
Text('Item 1'), | ||
Text('Item 2'), | ||
Text('Item 3'), | ||
Text('Item 4'), | ||
Text('Item 5'), | ||
], | ||
), | ||
SizedBox(height: 8), | ||
ImpaktfullSeparatedColumn( | ||
type: ImpaktfullSeparatorType.card, | ||
children: [ | ||
Text('Item 1'), | ||
Text('Item 2'), | ||
Text('Item 3'), | ||
Text('Item 4'), | ||
Text('Item 5'), | ||
], | ||
), | ||
], | ||
), | ||
), | ||
); | ||
} | ||
} |
Oops, something went wrong.