Skip to content

Commit

Permalink
Update responsive layout slides and dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
dario-digregorio committed May 28, 2024
1 parent 0c1ae47 commit 8377801
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 29 deletions.
2 changes: 1 addition & 1 deletion deck/lib/slides/about_slide.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class AboutSlide extends FlutterDeckSlideWidget {
Text(
'Senior Software Engineer Flutter & Web @NTT Data Germany',
style: Theme.of(context).textTheme.headlineLarge),
Text('Indie Developer',
Text('Indie Developer and Freelancer',
style: Theme.of(context).textTheme.headlineLarge),
],
),
Expand Down
6 changes: 3 additions & 3 deletions deck/lib/slides/abstract_slide.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ class AbstractSlide extends FlutterDeckSlideWidget {
const SizedBox(height: 32),
Text(
'''
- Dialogs, both fullscreen and modal
- Navigation UI, both rail and bottom bar
- Custom layout, such as "is the UI area taller or wider?"
- Dialogs, both fullscreen and modal
- Navigation UI, both rail and bottom bar
- Custom layout, such as "is the UI area taller or wider?"
''',
style: Theme.of(context).textTheme.headlineMedium,
),
Expand Down
34 changes: 18 additions & 16 deletions deck/lib/slides/approach_slide.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,24 @@ class ApproachSlide extends FlutterDeckSlideWidget {
headerBuilder: (context) => const FlutterDeckHeader(
title: 'General Approach',
),
builder: (context) => Padding(
padding: const EdgeInsets.all(64),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'The general approach on creating responsive widgets is explained in detailed by the Flutter Team:',
style: Theme.of(context).textTheme.headlineMedium),
const SizedBox(height: 32),
Image.asset('assets/approach.png'),
const SizedBox(height: 16),
const Text(
'Read more: https://docs.flutter.dev/ui/adaptive-responsive'),
const Text(
'Watch on YouTube: https://www.youtube.com/watch?v=LeKLGzpsz9I'),
],
builder: (context) => SingleChildScrollView(
child: Padding(
padding: const EdgeInsets.all(64),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'The general approach on creating responsive widgets is explained in detailed by the Flutter Team:',
style: Theme.of(context).textTheme.headlineMedium),
const SizedBox(height: 32),
Image.asset('assets/approach.png'),
const SizedBox(height: 16),
const Text(
'Read more: https://docs.flutter.dev/ui/adaptive-responsive'),
const Text(
'Watch on YouTube: https://www.youtube.com/watch?v=LeKLGzpsz9I'),
],
),
),
));
}
Expand Down
2 changes: 1 addition & 1 deletion deck/lib/slides/best_practises_slide.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class BestPractisesSlide extends FlutterDeckSlideWidget {
items: const [
'Break down your widgets',
'Design to the strengths of each form factor',
'Solve touch first',
'Solve touch first (Mobile first)',
'Don\'t lock the orientation of your app',
'Don\'t gobble up all of the horizontal space',
'Restore state',
Expand Down
8 changes: 0 additions & 8 deletions deck/lib/slides/foundation_slide.dart
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,6 @@ class FoundationSlide extends FlutterDeckSlideWidget {
),
),
const SizedBox(height: 64),
Text('Mobile first',
style: Theme.of(context).textTheme.headlineLarge),
const SizedBox(height: 16),
Text(
'Starting your design with mobile in mind makes scaling up to larger screens smoother. This approach helps in efficiently adapting your designs for tablets or desktops. We will implement a Master-Detail layout for larger screens.',
style: Theme.of(context).textTheme.headlineSmall,
),
const SizedBox(height: 64),
Text('Define Screen-based Breakpoints',
style: Theme.of(context).textTheme.headlineLarge),
const SizedBox(height: 32),
Expand Down

0 comments on commit 8377801

Please sign in to comment.