From 186079428b6fcd566e0526bfbb9118f29397961c Mon Sep 17 00:00:00 2001 From: teaishealthy Date: Sat, 17 Sep 2022 20:10:42 +0200 Subject: [PATCH] feat: use yaru theme --- lib/main.dart | 17 ++--------- pubspec.lock | 84 +++++++++++++++++++++++++++++++++++++++++++++++++++ pubspec.yaml | 1 + 3 files changed, 88 insertions(+), 14 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index 91480cc..01db256 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -4,6 +4,7 @@ import 'dart:io'; import 'package:flutter/material.dart'; import 'package:flutter_markdown/flutter_markdown.dart'; +import 'package:yaru/yaru.dart'; import 'package:markdown/markdown.dart' as md; import 'package:http/http.dart' show post; @@ -30,21 +31,9 @@ class MyApp extends StatelessWidget { // This widget is the root of your application. @override Widget build(BuildContext context) { - return MaterialApp( + return const MaterialApp( title: 'Flutter Demo', - theme: ThemeData( - // This is the theme of your application. - // - // Try running your application with "flutter run". You'll see the - // application has a blue toolbar. Then, without quitting the app, try - // changing the primarySwatch below to Colors.green and then invoke - // "hot reload" (press "r" in the console where you ran "flutter run", - // or simply save your changes to "hot reload" in a Flutter IDE). - // Notice that the counter didn't reset back to zero; the application - // is not restarted. - primarySwatch: Colors.purple, - ), - home: const MyHomePage(), + home: YaruTheme(child: MyHomePage()), ); } } diff --git a/pubspec.lock b/pubspec.lock index ac545d0..ab2c844 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -64,6 +64,13 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "1.0.5" + dbus: + dependency: transitive + description: + name: dbus + url: "https://pub.dartlang.org" + source: hosted + version: "0.7.8" fake_async: dependency: transitive description: @@ -71,6 +78,20 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "1.3.0" + ffi: + dependency: transitive + description: + name: ffi + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.1" + file: + dependency: transitive + description: + name: file + url: "https://pub.dartlang.org" + source: hosted + version: "6.1.4" flutter: dependency: "direct main" description: flutter @@ -95,6 +116,13 @@ packages: description: flutter source: sdk version: "0.0.0" + gsettings: + dependency: transitive + description: + name: gsettings + url: "https://pub.dartlang.org" + source: hosted + version: "0.2.5" http: dependency: "direct main" description: @@ -151,6 +179,27 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "1.8.1" + petitparser: + dependency: transitive + description: + name: petitparser + url: "https://pub.dartlang.org" + source: hosted + version: "5.0.0" + platform: + dependency: transitive + description: + name: platform + url: "https://pub.dartlang.org" + source: hosted + version: "3.1.0" + process: + dependency: transitive + description: + name: process + url: "https://pub.dartlang.org" + source: hosted + version: "4.2.4" sky_engine: dependency: transitive description: flutter @@ -219,6 +268,41 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "2.2.0" + xdg_directories: + dependency: transitive + description: + name: xdg_directories + url: "https://pub.dartlang.org" + source: hosted + version: "0.2.0+2" + xml: + dependency: transitive + description: + name: xml + url: "https://pub.dartlang.org" + source: hosted + version: "6.1.0" + yaru: + dependency: "direct main" + description: + name: yaru + url: "https://pub.dartlang.org" + source: hosted + version: "0.3.3" + yaru_color_generator: + dependency: transitive + description: + name: yaru_color_generator + url: "https://pub.dartlang.org" + source: hosted + version: "0.1.0" + yaru_colors: + dependency: transitive + description: + name: yaru_colors + url: "https://pub.dartlang.org" + source: hosted + version: "0.1.0" sdks: dart: ">=2.17.6 <3.0.0" flutter: ">=3.0.0" diff --git a/pubspec.yaml b/pubspec.yaml index acb3560..25bc828 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -37,6 +37,7 @@ dependencies: cupertino_icons: ^1.0.2 http: ^0.13.5 flutter_markdown: ^0.6.12 + yaru: ^0.3.3 dev_dependencies: flutter_test: