Skip to content

Commit bba38b9

Browse files
committed
Remove the butterfly from the front page
1 parent 31996c1 commit bba38b9

4 files changed

Lines changed: 223 additions & 262 deletions

File tree

lib/frontpage/title_section.dart

Lines changed: 16 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -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) {

macos/Flutter/GeneratedPluginRegistrant.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,10 @@ import Foundation
77

88
import cloud_firestore
99
import firebase_core
10-
import path_provider_foundation
1110
import url_launcher_macos
1211

1312
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
1413
FLTFirebaseFirestorePlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseFirestorePlugin"))
1514
FLTFirebaseCorePlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseCorePlugin"))
16-
PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
1715
UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin"))
1816
}

0 commit comments

Comments
 (0)