Icone-DecCard
This commit is contained in:
+15
-15
@@ -82,27 +82,27 @@ android {
|
|||||||
signingConfig signingConfigs.debug
|
signingConfig signingConfigs.debug
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
splits {
|
// splits {
|
||||||
|
|
||||||
//Configures multiple APKs based on ABI.
|
// //Configures multiple APKs based on ABI.
|
||||||
abi {
|
// abi {
|
||||||
|
|
||||||
//Enables building multiple APKs per ABI.
|
// //Enables building multiple APKs per ABI.
|
||||||
enable true
|
// enable true
|
||||||
|
|
||||||
//By default all ABIs are included, so use reset() and include to specify that we only
|
// //By default all ABIs are included, so use reset() and include to specify that we only
|
||||||
//want APKs for x86 and x86_64.
|
// //want APKs for x86 and x86_64.
|
||||||
|
|
||||||
//Resets the list of ABIs that Gradle should create APKs for to none.
|
// //Resets the list of ABIs that Gradle should create APKs for to none.
|
||||||
reset()
|
// reset()
|
||||||
|
|
||||||
//Specifies a list of ABIs that Gradle should create APKs for.
|
// //Specifies a list of ABIs that Gradle should create APKs for.
|
||||||
include "x86", "x86_64", "armeabi", "armeabi-v7a", "arm64-v8a"
|
// include "x86", "x86_64", "armeabi", "armeabi-v7a", "arm64-v8a"
|
||||||
|
|
||||||
//Specifies that we do not want to also generate a universal APK that includes all ABIs.
|
// //Specifies that we do not want to also generate a universal APK that includes all ABIs.
|
||||||
universalApk false
|
// universalApk false
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
flutter {
|
flutter {
|
||||||
|
|||||||
@@ -6,9 +6,10 @@ import 'package:convex_bottom_bar/convex_bottom_bar.dart';
|
|||||||
import 'package:decpisos/pdfviewer/pdfviewer.dart';
|
import 'package:decpisos/pdfviewer/pdfviewer.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:get/get.dart';
|
import 'package:get/get.dart';
|
||||||
|
import 'package:line_icons/line_icons.dart';
|
||||||
//import 'package:line_icons/line_icons.dart';
|
//import 'package:line_icons/line_icons.dart';
|
||||||
|
|
||||||
class IndexController extends GetxController with SingleGetTickerProviderMixin{
|
class IndexController extends GetxController with SingleGetTickerProviderMixin {
|
||||||
TabController tabController;
|
TabController tabController;
|
||||||
var tabs = List<TabItem>().obs;
|
var tabs = List<TabItem>().obs;
|
||||||
var childrenTabs = List<Widget>().obs;
|
var childrenTabs = List<Widget>().obs;
|
||||||
@@ -25,29 +26,33 @@ class IndexController extends GetxController with SingleGetTickerProviderMixin{
|
|||||||
super.onClose();
|
super.onClose();
|
||||||
}
|
}
|
||||||
|
|
||||||
void initTabs(){
|
void initTabs() {
|
||||||
//this.childrenTabs.add(YouTubeVideosScreen());
|
//this.childrenTabs.add(YouTubeVideosScreen());
|
||||||
//this.childrenTabs.add(InstagramScreen());
|
//this.childrenTabs.add(InstagramScreen());
|
||||||
this.childrenTabs.add(Tab(key: PageStorageKey('pdftab'), child:PDFViewerScreen()));
|
this
|
||||||
|
.childrenTabs
|
||||||
|
.add(Tab(key: PageStorageKey('pdftab'), child: PDFViewerScreen()));
|
||||||
this.childrenTabs.add(Tab(child: HomeScreen()));
|
this.childrenTabs.add(Tab(child: HomeScreen()));
|
||||||
this.childrenTabs.add(Tab(child: NotificacoesScreen()));
|
this.childrenTabs.add(Tab(child: NotificacoesScreen()));
|
||||||
//this.tabs.add(TabItem(icon: Icons.video_collection, title: 'Vídeos'));
|
//this.tabs.add(TabItem(icon: Icons.video_collection, title: 'Vídeos'));
|
||||||
//this.tabs.add(TabItem(icon: LineIcons.instagram, title: 'Instagram'));
|
//this.tabs.add(TabItem(icon: LineIcons.instagram, title: 'Instagram'));
|
||||||
this.tabs.add(TabItem(icon: Icons.book_online, title: 'DecCard'));
|
this
|
||||||
|
.tabs
|
||||||
|
.add(TabItem(icon: LineIcons.identificationCard, title: 'DecCard'));
|
||||||
this.tabs.add(TabItem(icon: Icons.home, title: 'Home'));
|
this.tabs.add(TabItem(icon: Icons.home, title: 'Home'));
|
||||||
this.tabs.add(TabItem(icon: Icons.notifications, title: 'Notificações'));
|
this.tabs.add(TabItem(icon: Icons.notifications, title: 'Notificações'));
|
||||||
this.tabController = TabController(vsync: this, length: this.tabs.length);
|
this.tabController = TabController(vsync: this, length: this.tabs.length);
|
||||||
}
|
}
|
||||||
|
|
||||||
void tabsWithoutVideos(){
|
void tabsWithoutVideos() {
|
||||||
this.childrenTabs.clear();
|
this.childrenTabs.clear();
|
||||||
this.tabs.clear();
|
this.tabs.clear();
|
||||||
this.childrenTabs.add(HomeScreen());
|
this.childrenTabs.add(HomeScreen());
|
||||||
this.childrenTabs.add(NotificacoesScreen());
|
this.childrenTabs.add(NotificacoesScreen());
|
||||||
this.tabs.add(TabItem(icon: Icons.home, title: 'Home'));
|
this.tabs.add(TabItem(icon: Icons.home, title: 'Home'));
|
||||||
this.tabs.add(TabItem(icon: Icons.notifications, title: 'Notificações'));
|
this.tabs.add(TabItem(icon: Icons.notifications, title: 'Notificações'));
|
||||||
this.tabController = new TabController(vsync: this, length: this.tabs.length);
|
this.tabController =
|
||||||
|
new TabController(vsync: this, length: this.tabs.length);
|
||||||
Get.rawSnackbar(message: 'Vídeos temporariamente indisponível');
|
Get.rawSnackbar(message: 'Vídeos temporariamente indisponível');
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user