Line data Source code
1 : // Copyright 2023 The terCAD team. All rights reserved. 2 : // Use of this source code is governed by a CC BY-NC-ND 4.0 license that can be found in the LICENSE file. 3 : 4 : import 'package:app_finance/_classes/herald/app_locale.dart'; 5 : import 'package:app_finance/_configs/theme_helper.dart'; 6 : import 'package:app_finance/pages/_interfaces/abstract_page_state.dart'; 7 : import 'package:app_finance/pages/automation/widgets/sync_tab.dart'; 8 : import 'package:app_finance/design/wrapper/tab_widget.dart'; 9 : //import 'package:app_finance/pages/automation/widgets/notification_tab.dart'; 10 : import 'package:flutter/material.dart'; 11 : 12 : class AutomationPage extends StatefulWidget { 13 5 : const AutomationPage({super.key}); 14 : 15 0 : @override 16 0 : AutomationPageState createState() => AutomationPageState(); 17 : } 18 : 19 : class AutomationPageState extends AbstractPageState<AutomationPage> with TickerProviderStateMixin { 20 0 : @override 21 : String getButtonName() => ''; 22 : 23 0 : @override 24 : Widget buildButton(BuildContext context, BoxConstraints constraints) { 25 : return ThemeHelper.emptyBox; 26 : } 27 : 28 0 : @override 29 : Widget buildContent(BuildContext context, BoxConstraints constraints) { 30 0 : bool isLeft = ThemeHelper.isNavRight(context, constraints); 31 0 : return Column( 32 0 : children: [ 33 0 : Expanded( 34 0 : child: TabWidget( 35 : type: TabType.secondary, 36 : isLeft: isLeft, 37 0 : tabs: [ 38 0 : Tab(icon: const Icon(Icons.sync), text: AppLocale.labels.syncHeadline), 39 : // if (Platform.isAndroid) 40 : // Tab(icon: const Icon(Icons.message), text: AppLocale.labels.notifyHeadline), 41 : const Tab(text: ''), // ERR: 'destinations.length >= 2': is not true 42 : ], 43 : children: const [ 44 : SyncTab(), 45 : //if (Platform.isAndroid) NotificationTab(), 46 : ThemeHelper.emptyBox, 47 : ], 48 : ), 49 : ), 50 : ], 51 : ); 52 : } 53 : 54 0 : @override 55 : String getTitle() { 56 0 : return AppLocale.labels.automationHeadline; 57 : } 58 : }