master #81

Closed
malo wants to merge 322 commits from master into feat/bloc_layout/new-package
4 changed files with 7 additions and 12 deletions
Showing only changes of commit 413589462b - Show all commits

View File

@ -35,7 +35,7 @@ class AppBarLayout extends Layout {
Widget build(BuildContext context) => Scaffold( Widget build(BuildContext context) => Scaffold(
appBar: PreferredSize( appBar: PreferredSize(
preferredSize: const Size.fromHeight(60), preferredSize: const Size.fromHeight(60),
child: context.components.appBar?.configure( child: context.components.appBar?.copyWith(
title: title, title: title,
leading: leading, leading: leading,
actions: actions, actions: actions,

View File

@ -13,7 +13,7 @@ class BottomNavigationBarLayout extends Layout {
@override @override
Widget build(BuildContext context) => Scaffold( Widget build(BuildContext context) => Scaffold(
body: body, body: body,
bottomNavigationBar: context.components.bottomNavigationBar?.configure( bottomNavigationBar: context.components.bottomNavigationBar?.copyWith(
currentIndex: currentIndex ?? 0, currentIndex: currentIndex ?? 0,
), ),
); );

View File

@ -37,7 +37,7 @@ class FrameLayout extends Layout {
Widget build(BuildContext context) => Scaffold( Widget build(BuildContext context) => Scaffold(
appBar: PreferredSize( appBar: PreferredSize(
preferredSize: const Size.fromHeight(60), preferredSize: const Size.fromHeight(60),
child: context.components.appBar?.configure( child: context.components.appBar?.copyWith(
title: title, title: title,
leading: leading, leading: leading,
actions: actions, actions: actions,
@ -45,7 +45,7 @@ class FrameLayout extends Layout {
const SizedBox.shrink(), const SizedBox.shrink(),
), ),
body: body, body: body,
bottomNavigationBar: context.components.bottomNavigationBar?.configure( bottomNavigationBar: context.components.bottomNavigationBar?.copyWith(
currentIndex: currentIndex ?? 0, currentIndex: currentIndex ?? 0,
), ),
); );

View File

@ -4,28 +4,23 @@ repository: https://git.wyatt-studio.fr/Wyatt-FOSS/wyatt-packages/src/branch/mas
version: 0.0.1 version: 0.0.1
environment: environment:
sdk: '>=2.17.0 <3.0.0' sdk: ">=2.17.0 <3.0.0"
dependencies: dependencies:
flutter: flutter:
sdk: flutter sdk: flutter
wyatt_ui_components: wyatt_ui_components:
git: git:
url: https://git.wyatt-studio.fr/Wyatt-FOSS/wyatt-packages url: https://git.wyatt-studio.fr/Wyatt-FOSS/wyatt-packages
path: packages/wyatt_ui_components path: packages/wyatt_ui_components
dev_dependencies: dev_dependencies:
flutter_test: flutter_test:
sdk: flutter sdk: flutter
wyatt_analysis: wyatt_analysis:
git: git:
url: https://git.wyatt-studio.fr/Wyatt-FOSS/wyatt-packages url: https://git.wyatt-studio.fr/Wyatt-FOSS/wyatt-packages
ref: wyatt_analysis-v2.3.0 ref: wyatt_analysis-v2.3.0
path: packages/wyatt_analysis path: packages/wyatt_analysis