Skip to content

Commit

Permalink
release ubuntu 2.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jspw committed Apr 25, 2021
1 parent c7ea4fc commit 8922963
Show file tree
Hide file tree
Showing 9 changed files with 116 additions and 105 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Ubuntu Launcher
<a href="https://github.com/jspw/Ubuntu-Launcher/releases">
<img src="https://img.shields.io/github/downloads/jspw/ubuntu-launcher/total" />
</a>
<a href="https://github.com/jspw/Ubuntu-Launcher/releases/tag/2.2.0">
<a href="https://github.com/jspw/Ubuntu-Launcher/releases/tag/2.3.0">
<img src="https://img.shields.io/github/v/release/jspw/ubuntu-launcher" />
</a>
<a href='https://github.com/jspw/Ubuntu-Launcher/issues'>
Expand All @@ -31,9 +31,9 @@ width="150" hspace="10" vspace="10">
Though flutter is a cross platform UI framework, the launcher has android version only for now.Our launcher is only available on github. Any update and release version will be available here.

<p align="center">
<a href="https://github.com/jspw/Ubuntu-Launcher/releases/tag/2.2.0">
<a href="https://github.com/jspw/Ubuntu-Launcher/releases/tag/2.3.0">
<img alt="Get it on Google Play"
src="https://img.shields.io/github/downloads/jspw/ubuntu-launcher/2.2.0/total?label=Download%20Now&logo=ubuntu%20launcher&style=for-the-badge" />
src="https://img.shields.io/github/downloads/jspw/ubuntu-launcher/2.3.0/total?label=Download%20Now&logo=ubuntu%20launcher&style=for-the-badge" />
</a>
</p>

Expand All @@ -53,6 +53,7 @@ At first, it was made for myself having simple look and customization. Then i de
- Slide Bar
- Shortcut Apps on SideBar
- Sort apps according to alphabetically, installation and update time
- Apps Search bar
- Animated navigation
- View Apps' settings
- Ad free
Expand All @@ -61,6 +62,7 @@ At first, it was made for myself having simple look and customization. Then i de

- In App drawer, **Press Long** on app to open App Setting
- Responsive (Can use as lanscape mode)
- Search apps on app drawer using search bar

## Requirements

Expand All @@ -70,7 +72,7 @@ At first, it was made for myself having simple look and customization. Then i de

## Install

- Latest : [Ubuntu Launcher 2.2.0](https://github.com/jspw/Ubuntu-Launcher/releases/tag/2.2.0)
- Latest : [Ubuntu Launcher 2.3.0](https://github.com/jspw/Ubuntu-Launcher/releases/tag/2.3.0)
- Old Versions : [Releases](https://github.com/jspw/Ubuntu-Launcher/releases)

Download the apk file and install in your android device.
Expand Down Expand Up @@ -101,6 +103,8 @@ Download the apk file and install in your android device.

![SortOption](assets/ss/sorts.png)

- **Search Bar**
![Search Bar](assets/ss/searchbar.png)
### Demo

<p align='center'>
Expand Down
Binary file modified assets/ss/apps.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/ss/apps_vertical_view.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/ss/demo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/ss/searchbar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/ss/sidebar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/ss/sorts.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/ss/vertical_view.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
209 changes: 108 additions & 101 deletions lib/src/core/modules/home/views/home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class Home extends StatelessWidget {
bool autoOpenDrawer;

// List<Application> shortcutApps = [];
//

_launchCaller() async {
const url = "tel:";
Expand All @@ -37,27 +38,32 @@ class Home extends StatelessWidget {

void drawerApps() async {}

void getShortcutApps(apps) {
Application settings, camera, sms, phone;
void getShortcutApps(apps) async {
// Application settings, camera, sms, phone;
//
String settingsPackageNameDemo;
String messagesPackageNameDemo;
String cameraPackageNameDemo;

for (int i = 0; i < apps.length; i++) {
Application app = apps[i];
if (app.appName == "Settings") {
// settingsPackageNameDemo = app.packageName;
settings = apps[i];
settingsPackageNameDemo = app.packageName;
// settings = apps[i];
} else if (app.appName == "Camera") {
// cameraPackageNameDemo = app.packageName;
camera = apps[i];
cameraPackageNameDemo = app.packageName;
// camera = apps[i];
} else if (app.appName == "Messages" || app.appName == "Messaging") {
// messagesPackageNameDemo = app.packageName;
sms = apps[i];
} else if (app.appName == "Phone" || app.appName == "Call") {
// messagesPackageNameDemo = app.packageName;
phone = apps[i];
messagesPackageNameDemo = app.packageName;
// sms = apps[i];
}
// else if (app.appName == "Phone" || app.appName == "Call") {
// messagesPackageNameDemo = app.packageName;
// // phone = apps[i];
// }
}

List<Application> shortcutApps = [settings, camera, sms, phone];
// List<Application> shortcutApps = [settings, camera, sms, phone];
// print("Testing cubit");
// print(shortcutApps);

Expand All @@ -72,25 +78,30 @@ class Home extends StatelessWidget {
// "com.android.mms"
// "com.sonyericsson.conversations"

//check message app installed or not
// if (await DeviceApps.isAppInstalled(messagesPackageNameDemo)) {
// messagesPackageNameDemo = messagesPackageNameDemo;
// } else if (await DeviceApps.isAppInstalled(
// "com.google.android.apps.messaging")) {
// messagesPackageNameDemo = "com.google.android.apps.messaging";
// } else if (await DeviceApps.isAppInstalled("com.jb.gosms")) {
// messagesPackageNameDemo = "com.jb.gosms";
// } else if (await DeviceApps.isAppInstalled(
// "com.concentriclivers.mms.com.android.mms")) {
// messagesPackageNameDemo = "com.concentriclivers.mms.com.android.mms";
// } else if (await DeviceApps.isAppInstalled("fr.slvn.mms")) {
// messagesPackageNameDemo = "fr.slvn.mms";
// } else if (await DeviceApps.isAppInstalled("com.android.mms")) {
// messagesPackageNameDemo = "com.android.mms";
// } else if (await DeviceApps.isAppInstalled(
// "com.sonyericsson.conversations")) {
// messagesPackageNameDemo = "com.sonyericsson.conversations";
// }
// check message app installed or not
//
if (await DeviceApps.isAppInstalled(messagesPackageNameDemo)) {
messagesPackageNameDemo = messagesPackageNameDemo;
} else if (await DeviceApps.isAppInstalled(
"com.google.android.apps.messaging")) {
messagesPackageNameDemo = "com.google.android.apps.messaging";
} else if (await DeviceApps.isAppInstalled("com.jb.gosms")) {
messagesPackageNameDemo = "com.jb.gosms";
} else if (await DeviceApps.isAppInstalled(
"com.concentriclivers.mms.com.android.mms")) {
messagesPackageNameDemo = "com.concentriclivers.mms.com.android.mms";
} else if (await DeviceApps.isAppInstalled("fr.slvn.mms")) {
messagesPackageNameDemo = "fr.slvn.mms";
} else if (await DeviceApps.isAppInstalled("com.android.mms")) {
messagesPackageNameDemo = "com.android.mms";
} else if (await DeviceApps.isAppInstalled(
"com.sonyericsson.conversations")) {
messagesPackageNameDemo = "com.sonyericsson.conversations";
}

settingsPackageName = settingsPackageNameDemo;
cameraPackageName = cameraPackageNameDemo;
messagesPackageName = messagesPackageNameDemo;
}

// void navigateScreen(widget) async {
Expand Down Expand Up @@ -136,73 +147,74 @@ class Home extends StatelessWidget {
opacity: state is OpacityInitial ? 1 : .30,
child: SafeArea(
child: Container(
color: Color.fromRGBO(39, 21, 40, 0.5),
// Colors.pink.withOpacity(0.5),
height: MediaQuery.of(context).size.height,
width: 60.0,
child: BlocBuilder<ShortcutAppsCubit, ShortcutAppsState>(
builder: (context, state) {
if (state is ShortcutAppsLoaded) {
List<Application> shortcutApps = state.shortcutApps;

print(shortcutApps.length);

// List x =;
color: Color.fromRGBO(39, 21, 40, 0.5),
// Colors.pink.withOpacity(0.5),
height: MediaQuery.of(context).size.height,
width: 60.0,
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Column(
children: [
GestureDetector(
onTap: () {
opacityCubit.setOpacitySemi();

return Column(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Column(
children: [
GestureDetector(
onTap: () {
opacityCubit.setOpacitySemi();

Navigator.pushNamed(
context, AppDrawer.route);
},
child: Container(
padding: const EdgeInsets.all(10),
// width: 35,
child: ClipRRect(
child: Hero(
tag: 'drawer',
child: Image.asset(
"assets/images/drawer.png",
fit: BoxFit.cover,
Navigator.pushNamed(
context, AppDrawer.route);
},
child: Container(
padding: const EdgeInsets.all(10),
// width: 35,
child: ClipRRect(
child: Hero(
tag: 'drawer',
child: Image.asset(
"assets/images/drawer.png",
fit: BoxFit.cover,
),
),
),
),
),
],
),
Column(children: [
shortcutAppsBuild(
Icon(
Icons.phone,
color: Colors.white,
),
() => _launchCaller(),
),
],
),
Column(
children: List.generate(
shortcutApps.length,
(index) {
Application shortcutApp = shortcutApps[index];
print("shortcutApp");
print(shortcutApp);
return shortcutApp is ApplicationWithIcon
? shortcutAppsBuild(
shortcutApp.icon,
() => DeviceApps.openApp(
shortcutApp.packageName))
: null;
},
shortcutAppsBuild(
Icon(
Icons.sms_sharp,
color: Colors.white,
),
() => DeviceApps.openApp(messagesPackageName),
),
shortcutAppsBuild(
Icon(
Icons.flip_camera_ios,
color: Colors.white,
),
() => DeviceApps.openApp(cameraPackageName),
),
shortcutAppsBuild(
Icon(
Icons.settings,
color: Colors.white,
),
() => DeviceApps.openApp(settingsPackageName),
)
]),
Opacity(
opacity: 0,
child: IconButton(
onPressed: () {}, icon: Icon(Icons.menu)),
),
),
Opacity(
opacity: 0,
child: IconButton(
onPressed: () {}, icon: Icon(Icons.menu)),
),
]);
} else
return Container();
}),
)),
]))),
);
},
),
Expand All @@ -220,6 +232,7 @@ class Home extends StatelessWidget {
);
else if (state is AppsLoaded) {
apps = state.apps;
getShortcutApps(apps);
return Container(
key: scaffoldKey,
decoration: BoxDecoration(
Expand Down Expand Up @@ -274,15 +287,9 @@ class Home extends StatelessWidget {
}
}

Widget shortcutAppsBuild(Uint8List icon, Function fn) {
return GestureDetector(
onTap: fn,
child: Padding(
padding: const EdgeInsets.all(8),
child: Image.memory(
icon,
// color: Colors.transparent,
),
),
Widget shortcutAppsBuild(Icon icon, Function fn) {
return Padding(
padding: const EdgeInsets.only(top: 15.0),
child: IconButton(icon: icon, onPressed: fn),
);
}

0 comments on commit 8922963

Please sign in to comment.