@@ -7,6 +7,7 @@ import '../theme.dart';
77import '../services/tooltip_helper.dart' ;
88import '../viewmodels/app_viewmodel.dart' ;
99import '../widgets/dialogs.dart' ;
10+ import '../widgets/log_view.dart' ;
1011import '../widgets/sections/aliases_section.dart' ;
1112import '../widgets/sections/app_section.dart' ;
1213import '../widgets/sections/user_section.dart' ;
@@ -77,68 +78,88 @@ class _HomeScreenState extends State<HomeScreen> {
7778 ],
7879 ),
7980 ),
80- body: Semantics (
81- identifier: 'main_scroll_view' ,
82- child: ListView (
83- padding: const EdgeInsets .only (bottom: 24 ),
84- children: [
85- const AppSection (),
86- const UserSection (),
87- PushSection (onInfoTap: () => _showTooltipDialog (context, 'push' )),
88- SendPushSection (
89- onInfoTap:
90- () => _showTooltipDialog (context, 'sendPushNotification' ),
91- ),
92- InAppSection (
93- onInfoTap: () => _showTooltipDialog (context, 'inAppMessaging' ),
94- ),
95- SendIamSection (
96- onInfoTap: () => _showTooltipDialog (context, 'sendInAppMessage' ),
97- ),
98- AliasesSection (
99- onInfoTap: () => _showTooltipDialog (context, 'aliases' ),
100- ),
101- EmailsSection (
102- onInfoTap: () => _showTooltipDialog (context, 'emails' ),
103- ),
104- SmsSection (onInfoTap: () => _showTooltipDialog (context, 'sms' )),
105- TagsSection (onInfoTap: () => _showTooltipDialog (context, 'tags' )),
106- OutcomesSection (
107- onInfoTap: () => _showTooltipDialog (context, 'outcomes' ),
108- ),
109- TriggersSection (
110- onInfoTap: () => _showTooltipDialog (context, 'triggers' ),
111- ),
112- CustomEventsSection (
113- onInfoTap: () => _showTooltipDialog (context, 'customEvents' ),
114- ),
115- LocationSection (
116- onInfoTap: () => _showTooltipDialog (context, 'location' ),
117- ),
118- if (defaultTargetPlatform == TargetPlatform .iOS)
119- LiveActivitiesSection (
120- onInfoTap: () => _showTooltipDialog (context, 'liveActivities' ),
121- ),
122- const SizedBox (height: 8 ),
123- Padding (
124- padding: const EdgeInsets .symmetric (horizontal: 16 ),
125- child: ElevatedButton (
126- onPressed: () {
127- Navigator .push (
128- context,
129- MaterialPageRoute (builder: (_) => const SecondaryScreen ()),
130- );
131- },
132- style: ElevatedButton .styleFrom (
133- backgroundColor: AppColors .osPrimary,
134- foregroundColor: Colors .white,
135- ),
136- child: const Text ('NEXT SCREEN' ),
81+ body: Column (
82+ children: [
83+ const LogView (),
84+ Expanded (
85+ child: Semantics (
86+ identifier: 'main_scroll_view' ,
87+ child: ListView (
88+ padding: const EdgeInsets .only (bottom: 24 ),
89+ children: [
90+ const AppSection (),
91+ const UserSection (),
92+ PushSection (
93+ onInfoTap: () => _showTooltipDialog (context, 'push' ),
94+ ),
95+ SendPushSection (
96+ onInfoTap:
97+ () =>
98+ _showTooltipDialog (context, 'sendPushNotification' ),
99+ ),
100+ InAppSection (
101+ onInfoTap:
102+ () => _showTooltipDialog (context, 'inAppMessaging' ),
103+ ),
104+ SendIamSection (
105+ onInfoTap:
106+ () => _showTooltipDialog (context, 'sendInAppMessage' ),
107+ ),
108+ AliasesSection (
109+ onInfoTap: () => _showTooltipDialog (context, 'aliases' ),
110+ ),
111+ EmailsSection (
112+ onInfoTap: () => _showTooltipDialog (context, 'emails' ),
113+ ),
114+ SmsSection (
115+ onInfoTap: () => _showTooltipDialog (context, 'sms' ),
116+ ),
117+ TagsSection (
118+ onInfoTap: () => _showTooltipDialog (context, 'tags' ),
119+ ),
120+ OutcomesSection (
121+ onInfoTap: () => _showTooltipDialog (context, 'outcomes' ),
122+ ),
123+ TriggersSection (
124+ onInfoTap: () => _showTooltipDialog (context, 'triggers' ),
125+ ),
126+ CustomEventsSection (
127+ onInfoTap:
128+ () => _showTooltipDialog (context, 'customEvents' ),
129+ ),
130+ LocationSection (
131+ onInfoTap: () => _showTooltipDialog (context, 'location' ),
132+ ),
133+ if (defaultTargetPlatform == TargetPlatform .iOS)
134+ LiveActivitiesSection (
135+ onInfoTap:
136+ () => _showTooltipDialog (context, 'liveActivities' ),
137+ ),
138+ const SizedBox (height: 8 ),
139+ Padding (
140+ padding: const EdgeInsets .symmetric (horizontal: 16 ),
141+ child: ElevatedButton (
142+ onPressed: () {
143+ Navigator .push (
144+ context,
145+ MaterialPageRoute (
146+ builder: (_) => const SecondaryScreen (),
147+ ),
148+ );
149+ },
150+ style: ElevatedButton .styleFrom (
151+ backgroundColor: AppColors .osPrimary,
152+ foregroundColor: Colors .white,
153+ ),
154+ child: const Text ('NEXT SCREEN' ),
155+ ),
156+ ),
157+ const SizedBox (height: 16 ),
158+ ],
137159 ),
138160 ),
139- const SizedBox (height: 16 ),
140- ],
141- ),
161+ ),
162+ ],
142163 ),
143164 );
144165 }
0 commit comments