Skip to content

Commit

Permalink
Merge pull request #13 from lucas-goldner/fc-9-eventchannel-slides
Browse files Browse the repository at this point in the history
Fc 9 eventchannel slides
  • Loading branch information
lucas-goldner committed Jun 7, 2023
2 parents e8d4959 + 92e4458 commit 2540e0c
Show file tree
Hide file tree
Showing 13 changed files with 413 additions and 19 deletions.
Binary file added assets/images/custom/flutter_airpod_init.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/custom/flutter_airpod_ios.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 12 additions & 1 deletion assets/l10n/intl_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,16 @@
"count": {}
}
},
"motivation": "Motivation"
"motivation": "Motivation",
"methodChannel": "Method Channel",
"flutter": "Flutter",
"eventChannels": "Event Channel",
"invokeFunctions": "Invokes functions",
"receiveValue": "Receives value",
"startsListening": "Starts listening",
"implementsFlutterStreamHandler": "Implements FlutterStreamHandler interface",
"receivesEvents": "Receives Events from Stream",
"TypicalWay": "Typical way",
"eventChannelsFlutter": "Eventchannel - Flutter setup",
"eventChannelsiOS": "Eventchannel - iOS setup"
}
19 changes: 17 additions & 2 deletions lib/generated/assets.gen.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 18 additions & 1 deletion lib/generated/intl/messages_en.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,22 @@ class MessageLookup extends MessageLookupByLibrary {

final messages = _notInlinedMessages(_notInlinedMessages);
static Map<String, Function> _notInlinedMessages(_) => <String, Function>{
"TypicalWay": MessageLookupByLibrary.simpleMessage("Typical way"),
"agenda": MessageLookupByLibrary.simpleMessage("Agenda"),
"benefitsAndDownsides":
MessageLookupByLibrary.simpleMessage("Benefits and downsides"),
"eventChannels": MessageLookupByLibrary.simpleMessage("Event Channel"),
"eventChannelsFlutter": MessageLookupByLibrary.simpleMessage(
"Eventchannel - Flutter setup"),
"eventChannelsiOS":
MessageLookupByLibrary.simpleMessage("Eventchannel - iOS setup"),
"ffigenSetup": MessageLookupByLibrary.simpleMessage("FFIGen Setup"),
"flutter": MessageLookupByLibrary.simpleMessage("Flutter"),
"implementsFlutterStreamHandler": MessageLookupByLibrary.simpleMessage(
"Implements FlutterStreamHandler interface"),
"invokeFunctions":
MessageLookupByLibrary.simpleMessage("Invokes functions"),
"methodChannel": MessageLookupByLibrary.simpleMessage("Method Channel"),
"methodEventChannels":
MessageLookupByLibrary.simpleMessage("Method / Eventchannels"),
"motivation": MessageLookupByLibrary.simpleMessage("Motivation"),
Expand All @@ -39,6 +51,11 @@ class MessageLookup extends MessageLookupByLibrary {
MessageLookupByLibrary.simpleMessage("FFIGen - The solution ?"),
"prologue": MessageLookupByLibrary.simpleMessage("Prologue"),
"pushups": m0,
"runFfigen": MessageLookupByLibrary.simpleMessage("Run FFIGen")
"receiveValue": MessageLookupByLibrary.simpleMessage("Receives value"),
"receivesEvents":
MessageLookupByLibrary.simpleMessage("Receives Events from Stream"),
"runFfigen": MessageLookupByLibrary.simpleMessage("Run FFIGen"),
"startsListening":
MessageLookupByLibrary.simpleMessage("Starts listening")
};
}
110 changes: 110 additions & 0 deletions lib/generated/l10n.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 6 additions & 10 deletions lib/pages/03_motivation/view/motivation.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import 'package:fluttercon_2023_presentation/generated/assets.gen.dart';
import 'package:fluttercon_2023_presentation/generated/l10n.dart';
import 'package:fluttercon_2023_presentation/presentation/provider/presentation_controller_provider.dart';
import 'package:fluttercon_2023_presentation/presentation/widgets/directional_animation.dart';
import 'package:fluttercon_2023_presentation/slides/widgets/components/arrow.dart';
import 'package:fluttercon_2023_presentation/slides/widgets/components/arrows/curvy_arrow.dart';
import 'package:fluttercon_2023_presentation/slides/widgets/layout/layout_body.dart';
import 'package:fluttercon_2023_presentation/slides/widgets/layout/layout_header.dart';
import 'package:fluttercon_2023_presentation/slides/widgets/text/title.dart';
Expand Down Expand Up @@ -60,7 +60,7 @@ class MotivationSlide extends HookConsumerWidget {
),
const Padding(
padding: EdgeInsets.only(top: 400),
child: Arrow(400, 160),
child: CurvyArrow(400, 160),
),
],
),
Expand All @@ -80,21 +80,17 @@ class MotivationSlide extends HookConsumerWidget {
padding: const EdgeInsets.only(top: 400),
child: Transform.rotate(
angle: -math.pi / 48.0,
child: const Arrow(400, 160),
child: const CurvyArrow(400, 160),
),
),
],
),
),
Visibility(
visible: index >= 3,
child: Padding(
padding:
const EdgeInsets.only(bottom: 120, right: 20),
child: Assets.images.custom.pushup.image(
height: 200,
fit: BoxFit.contain,
),
child: Assets.images.custom.pushup.image(
height: 60,
fit: BoxFit.cover,
),
),
],
Expand Down
136 changes: 136 additions & 0 deletions lib/pages/06_method_channels/view/method_channels_slide.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
import 'package:flutter/material.dart';
import 'package:fluttercon_2023_presentation/generated/l10n.dart';
import 'package:fluttercon_2023_presentation/presentation/provider/presentation_controller_provider.dart';
import 'package:fluttercon_2023_presentation/slides/widgets/components/arrows/arrow.dart';
import 'package:fluttercon_2023_presentation/slides/widgets/layout/layout_body.dart';
import 'package:fluttercon_2023_presentation/slides/widgets/layout/layout_header.dart';
import 'package:fluttercon_2023_presentation/slides/widgets/text/regular_text.dart';
import 'package:fluttercon_2023_presentation/slides/widgets/text/title.dart';
import 'package:fluttercon_2023_presentation/styles/fc_gradients.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';

class MethodChannelsSlide extends HookConsumerWidget {
const MethodChannelsSlide({super.key});

@override
Widget build(BuildContext context, WidgetRef ref) {
final index = ref.watch(presentationController).itemIndex;

return DecoratedBox(
decoration: const BoxDecoration(
gradient: FCGradients.backgroundPrimary,
),
child: Column(
children: [
LayoutHeader(
Column(
children: [
const SizedBox(
height: 48,
),
TextTitle(S.of(context).TypicalWay),
],
),
flexUnits: 2,
),
LayoutBody(
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Column(
children: [
const Spacer(),
Visibility(
visible: index >= 1,
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 16),
child: Row(
children: [
RegularText(S.of(context).flutter),
const SizedBox(
width: 60,
),
Arrow(
S.of(context).invokeFunctions,
height: 48,
),
const SizedBox(
width: 72,
),
RegularText(S.of(context).methodChannel),
const SizedBox(
width: 60,
),
Arrow(
S.of(context).receiveValue,
height: 48,
),
const SizedBox(
width: 120,
),
RegularText(S.of(context).flutter),
],
),
),
),
const SizedBox(
height: 80,
),
Visibility(
visible: index >= 2,
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 16),
child: Row(
children: [
RegularText(S.of(context).flutter),
const SizedBox(
width: 60,
),
Arrow(
S.of(context).startsListening,
height: 48,
),
const SizedBox(
width: 100,
),
RegularText(S.of(context).eventChannels),
const SizedBox(
width: 60,
),
Arrow(
S.of(context).receivesEvents,
height: 48,
),
const SizedBox(
width: 20,
),
RegularText(S.of(context).flutter),
],
),
),
),
const SizedBox(
height: 20,
),
Visibility(
visible: index >= 2,
child: RegularText(
S.of(context).implementsFlutterStreamHandler,
fontSize: 32,
),
),
const SizedBox(
height: 92,
),
const Spacer(),
],
),
],
),
flexUnits: 8,
),
],
),
);
}
}
Loading

0 comments on commit 2540e0c

Please sign in to comment.