Commit 1e727dfe authored by Administrator's avatar Administrator

set application launcher icon

parent cb727b69
......@@ -9,7 +9,7 @@
<application
android:name="io.flutter.app.FlutterApplication"
android:label="encrateia"
android:icon="@mipmap/ic_launcher">
android:icon="@mipmap/launcher_icon">
<activity
android:name=".MainActivity"
android:launchMode="singleTop"
......
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0z"/><path d="M13.49 5.48c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm-3.6 13.9l1-4.4 2.1 2v6h2v-7.5l-2.1-2 .6-3c1.3 1.5 3.3 2.5 5.5 2.5v-2c-1.9 0-3.5-1-4.3-2.4l-1-1.6c-.4-.6-1-1-1.7-1-.3 0-.5.1-.8.1l-5.2 2.2v4.7h2v-3.4l1.8-.7-1.6 8.1-4.9-1-.4 2 7 1.4z"/></svg>
\ No newline at end of file
......@@ -8,54 +8,26 @@ class MyApp extends StatelessWidget {
return MaterialApp(
title: 'Encrateia',
theme: ThemeData(
primarySwatch: Colors.orange,
primarySwatch: Colors.orange, // #ff9800
),
home: MyHomePage(title: 'Encrateia Start'),
home: Dashboard(title: 'Encrateia Dashboard'),
);
}
}
class MyHomePage extends StatefulWidget {
MyHomePage({Key key, this.title}) : super(key: key);
class Dashboard extends StatelessWidget {
final String title;
@override
_MyHomePageState createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
int _counter = 0;
void _incrementCounter() {
setState(() {
_counter++;
});
}
Dashboard({this.title});
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(widget.title),
title: Text(title),
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Text(
'You have pushed the button this many times:',
),
Text(
'$_counter',
style: Theme.of(context).textTheme.display1,
),
],
),
),
floatingActionButton: FloatingActionButton(
onPressed: _incrementCounter,
tooltip: 'Increment',
child: Icon(Icons.add),
child: Text('Hi')
),
);
}
......
......@@ -8,6 +8,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "0.34.3"
archive:
dependency: transitive
description:
name: archive
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.10"
args:
dependency: transitive
description:
......@@ -160,6 +167,13 @@ packages:
description: flutter
source: sdk
version: "0.0.0"
flutter_launcher_icons:
dependency: "direct main"
description:
name: flutter_launcher_icons
url: "https://pub.dartlang.org"
source: hosted
version: "0.7.2+1"
flutter_test:
dependency: "direct dev"
description: flutter
......@@ -214,6 +228,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "3.1.3"
image:
dependency: transitive
description:
name: image
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.4"
io:
dependency: transitive
description:
......@@ -326,6 +347,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "1.7.0"
petitparser:
dependency: transitive
description:
name: petitparser
url: "https://pub.dartlang.org"
source: hosted
version: "2.4.0"
plugin:
dependency: transitive
description:
......@@ -485,6 +513,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.15"
xml:
dependency: transitive
description:
name: xml
url: "https://pub.dartlang.org"
source: hosted
version: "3.5.0"
yaml:
dependency: transitive
description:
......@@ -493,5 +528,5 @@ packages:
source: hosted
version: "2.1.16"
sdks:
dart: ">=2.3.0 <3.0.0"
dart: ">=2.4.0 <3.0.0"
flutter: ">=1.2.1 <2.0.0"
......@@ -9,9 +9,11 @@ environment:
dependencies:
flutter:
sdk: flutter
flutter_launcher_icons: ^0.7.2
cupertino_icons: ^0.1.2
jaguar_query_sqflite: ^2.2.10
dev_dependencies:
flutter_test:
sdk: flutter
......@@ -20,4 +22,9 @@ dev_dependencies:
flutter:
uses-material-design: true
\ No newline at end of file
uses-material-design: true
flutter_icons:
android: launcher_icon
ios: true
image_path: assets/icons/runner.png
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment