-
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 a lot of new components & bugfixes
- Loading branch information
1 parent
4634f0d
commit ef7d579
Showing
48 changed files
with
1,211 additions
and
199 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.
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.
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.
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
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,53 @@ | ||
import 'package:impaktfull_ui/impaktfull_ui.dart'; | ||
|
||
class CardScreen extends StatelessWidget { | ||
const CardScreen({ | ||
super.key, | ||
}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return ImpaktfullThemeLocalizer( | ||
builder: (context, theme) => ImpaktfullScreen( | ||
title: 'Components - Card', | ||
onBackTapped: () => Navigator.of(context).pop(), | ||
child: ImpaktfullListView( | ||
spacing: 8, | ||
children: [ | ||
ImpaktfullCard( | ||
child: ImpaktfullAutoLayout.vertical( | ||
spacing: 8, | ||
children: [ | ||
Text( | ||
'Some normal title', | ||
style: theme.textStyles.onCardPrimary.title, | ||
), | ||
Text( | ||
'And this will be some body text that is a bit longer than the title', | ||
style: theme.textStyles.onCardPrimary.body, | ||
), | ||
], | ||
), | ||
), | ||
ImpaktfullCard( | ||
isSelected: true, | ||
child: ImpaktfullAutoLayout.vertical( | ||
spacing: 8, | ||
children: [ | ||
Text( | ||
'Some normal title (selected)', | ||
style: theme.textStyles.onCardPrimary.title, | ||
), | ||
Text( | ||
'And this will be some body text that is a bit longer than the title', | ||
style: theme.textStyles.onCardPrimary.body, | ||
), | ||
], | ||
), | ||
), | ||
], | ||
), | ||
), | ||
); | ||
} | ||
} |
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,81 @@ | ||
import 'package:impaktfull_ui/impaktfull_ui.dart'; | ||
import 'package:impaktfull_ui_example/src/util/snacky_uitl.dart'; | ||
|
||
class DialogScreen extends StatelessWidget { | ||
const DialogScreen({ | ||
super.key, | ||
}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return ImpaktfullThemeLocalizer( | ||
builder: (context, theme) => ImpaktfullScreen( | ||
title: 'Components - Dialog', | ||
onBackTapped: () => Navigator.of(context).pop(), | ||
child: ImpaktfullListView( | ||
spacing: 8, | ||
children: [ | ||
ImpaktfullButton.accent( | ||
label: 'Show dialog', | ||
onAsyncTap: () async { | ||
showDialog( | ||
context: context, | ||
builder: (context) => ImpaktfullDialog( | ||
child: Text( | ||
'some body', | ||
style: theme.textStyles.onCardPrimary.body, | ||
), | ||
), | ||
); | ||
}, | ||
), | ||
ImpaktfullButton.accent( | ||
label: 'Show dialog (with title & body)', | ||
onAsyncTap: () async { | ||
final result = await showDialog( | ||
context: context, | ||
builder: (context) => ImpaktfullDialog( | ||
title: 'Some title', | ||
body: 'Some body', | ||
onSecondaryTapped: () => Navigator.of(context).pop(false), | ||
onPrimaryTapped: () => Navigator.of(context).pop(true), | ||
), | ||
); | ||
SnackyUtil.show('Result of dialog: `$result`'); | ||
}, | ||
), | ||
ImpaktfullButton.accent( | ||
label: 'Show dialog (with result)', | ||
onAsyncTap: () async { | ||
final result = await showDialog( | ||
context: context, | ||
builder: (context) => ImpaktfullDialog( | ||
onSecondaryTapped: () => Navigator.of(context).pop(false), | ||
onPrimaryTapped: () => Navigator.of(context).pop(true), | ||
child: Text( | ||
'some body', | ||
style: theme.textStyles.onCardPrimary.body, | ||
), | ||
), | ||
); | ||
SnackyUtil.show('Result of dialog: `$result`'); | ||
}, | ||
), | ||
ImpaktfullButton.accent( | ||
label: 'Show date time picker dialog', | ||
onAsyncTap: () async { | ||
final result = await showDialog( | ||
context: context, | ||
builder: (context) => ImpaktfullDateTimePickerDialog( | ||
selectedDateTime: DateTime.now(), | ||
), | ||
); | ||
SnackyUtil.show('Result of date time picker dialog: `$result`'); | ||
}, | ||
), | ||
], | ||
), | ||
), | ||
); | ||
} | ||
} |
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,30 @@ | ||
import 'package:impaktfull_ui/impaktfull_ui.dart'; | ||
import 'package:impaktfull_ui_example/src/util/example_assets.dart'; | ||
import 'package:impaktfull_ui_example/src/util/snacky_uitl.dart'; | ||
|
||
class FabScreen extends StatelessWidget { | ||
const FabScreen({ | ||
super.key, | ||
}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return ImpaktfullThemeLocalizer( | ||
builder: (context, theme) => ImpaktfullScreen( | ||
title: 'Components - Fab', | ||
onBackTapped: () => Navigator.of(context).pop(), | ||
child: ImpaktfullListView( | ||
spacing: 8, | ||
children: [ | ||
Center( | ||
child: ImpaktfullFab( | ||
asset: ExampleAssets.add, | ||
onTap: () => SnackyUtil.show('OnTap'), | ||
), | ||
), | ||
], | ||
), | ||
), | ||
); | ||
} | ||
} |
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/screen/components/listview/listview_empty_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 ListViewEmptyScreen extends StatelessWidget { | ||
const ListViewEmptyScreen({ | ||
super.key, | ||
}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return ImpaktfullScreen( | ||
title: 'ListView - Empty', | ||
onBackTapped: () => Navigator.of(context).pop(), | ||
child: ImpaktfullListView.builder( | ||
onRefresh: () async => Future.delayed(const Duration(seconds: 2)), | ||
items: const [], | ||
itemBuilder: (context, item) => Container(), | ||
noDataLabel: 'No data', | ||
refreshBtnLabel: 'Probeer opnieuw', | ||
), | ||
); | ||
} | ||
} |
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.