@@ -23,55 +23,22 @@ class TitleSection extends StatelessWidget {
2323
2424 return Padding (
2525 padding: windowSize.margin,
26- child: switch (windowSize) {
27- WindowSize .compact || WindowSize .medium => Column (
28- children: [
29- Expanded (
30- child: Column (
31- children: [
32- _buildTitle (context),
33- _buildSubtitle (context),
34- Flexible (
35- child: _buildButterfly (context),
36- ),
37- const SizedBox (height: 8 ),
38- if (onGetInTouchPressed != null )
39- _buildContactButton (context),
40- ],
41- ),
42- ),
43- _buildDownArrow (context),
44- ],
45- ),
46- WindowSize .expanded ||
47- WindowSize .large ||
48- WindowSize .extraLarge =>
49- Column (
50- children: [
51- Expanded (
52- child: Row (
53- mainAxisAlignment: MainAxisAlignment .center,
54- children: [
55- Flexible (
56- child: _buildButterfly (context),
57- ),
58- const SizedBox (width: 24 ),
59- Column (
60- mainAxisSize: MainAxisSize .min,
61- children: < Widget > [
62- _buildTitle (context),
63- _buildSubtitle (context),
64- const SizedBox (height: 32 ),
65- _buildContactButton (context),
66- ],
67- ),
68- ],
69- ),
70- ),
71- _buildDownArrow (context),
72- ],
26+ child: Column (
27+ children: [
28+ Expanded (
29+ child: Column (
30+ mainAxisAlignment: MainAxisAlignment .center,
31+ children: [
32+ _buildTitle (context),
33+ _buildSubtitle (context),
34+ const SizedBox (height: 32 ),
35+ if (onGetInTouchPressed != null ) _buildContactButton (context),
36+ ],
37+ ),
7338 ),
74- },
39+ _buildDownArrow (context),
40+ ],
41+ ),
7542 );
7643 }
7744
@@ -130,6 +97,7 @@ class TitleSection extends StatelessWidget {
13097 );
13198 }
13299
100+ // ignore: unused_element
133101 Widget _buildButterfly (BuildContext context) {
134102 return LayoutBuilder (
135103 builder: (context, constraints) {
0 commit comments