From b5301a85f89e7a0874ff0ad75cf93b6117aff1d9 Mon Sep 17 00:00:00 2001 From: Varakh Date: Sat, 8 May 2021 11:17:53 +0200 Subject: [PATCH] Add Travis CI and fix an analyze issue --- .travis.yml | 20 ++++++++++++++++++++ lib/ui/views/history_view.dart | 1 + 2 files changed, 21 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..f64ec41 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,20 @@ +language: dart +dist: bionic +addons: + apt: + packages: + - lib32stdc++6 +install: + - git clone https://github.com/flutter/flutter.git -b stable --depth 1 + - export PATH=./flutter/bin:$PATH + - flutter doctor --version +script: + - cd $TRAVIS_BUILD_DIR + - flutter pub get + - flutter pub upgrade + - flutter packages pub run build_runner build --delete-conflicting-outputs + - flutter analyze --no-pub --no-current-package lib/ + - flutter build apk +cache: + directories: + - $HOME/.pub-cache \ No newline at end of file diff --git a/lib/ui/views/history_view.dart b/lib/ui/views/history_view.dart index 15f021f..8fc1f82 100644 --- a/lib/ui/views/history_view.dart +++ b/lib/ui/views/history_view.dart @@ -144,6 +144,7 @@ class HistoryView extends StatelessWidget { iconColor: blueColor, tapHeaderToExpand: true), child: ExpandablePanel( + collapsed: Container(), header: InkWell( child: Text( paste.id,