Skip to content
This repository has been archived by the owner on Mar 21, 2023. It is now read-only.

Commit

Permalink
feat: use yaru theme
Browse files Browse the repository at this point in the history
  • Loading branch information
teaishealthy committed Sep 17, 2022
1 parent d5ec927 commit 1860794
Show file tree
Hide file tree
Showing 3 changed files with 88 additions and 14 deletions.
17 changes: 3 additions & 14 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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()),
);
}
}
Expand Down
84 changes: 84 additions & 0 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,34 @@ 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:
name: fake_async
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
Expand All @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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"
1 change: 1 addition & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 1860794

Please sign in to comment.