From 7ea0c6cdf0b983d6481de507ef60a20ad9ddffd2 Mon Sep 17 00:00:00 2001 From: Gregory Conrad Date: Tue, 28 Nov 2023 11:14:39 -0500 Subject: [PATCH] docs: add total loc and make fixes to pres --- examples/presentation/lib/main.dart | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/examples/presentation/lib/main.dart b/examples/presentation/lib/main.dart index d72b36f..0c2e1da 100644 --- a/examples/presentation/lib/main.dart +++ b/examples/presentation/lib/main.dart @@ -291,6 +291,12 @@ class PresentationApp extends StatelessWidget { ), ), ), + FunctionalSlide( + builder: totalLoc, + configuration: FlutterDeckSlideConfiguration( + route: '/conclusion/total-loc', + ), + ), FunctionalSlide( builder: builtWithRearch, configuration: FlutterDeckSlideConfiguration( @@ -683,7 +689,7 @@ FlutterDeckSlide selfReads(BuildContext context) { items: const [ 'Capsules are not always a DAG; they can have self-dependencies!', 'Self-dependencies are achieved via a capsule reading itself', - 'Self-reads are equivalent to side effects, if given a rebuild api', + 'Self-reads are equivalent to side effects, if given a rebuild API', ], ); }, @@ -1351,8 +1357,18 @@ FlutterDeckSlide conclusion(BuildContext context) { ); } +FlutterDeckSlide totalLoc(BuildContext context) { + return FlutterDeckSlide.bigFact( + title: '4,601 + 1,862 = 6,463', + subtitle: 'Total lines of code (libraries and examples)', + ); +} + FlutterDeckSlide builtWithRearch(BuildContext context) { - return FlutterDeckSlide.quote(quote: 'Built with ReArch'); + return FlutterDeckSlide.quote( + quote: 'Built with ReArch', + attribution: 'https://tinyurl.com/pres-source', + ); } FlutterDeckSlide qAndA(BuildContext context) {