Add Travis CI and fix an analyze issue

This commit is contained in:
Varakh 2021-05-08 11:17:53 +02:00
parent 6e215ff935
commit b5301a85f8
2 changed files with 21 additions and 0 deletions

20
.travis.yml Normal file
View file

@ -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

View file

@ -144,6 +144,7 @@ class HistoryView extends StatelessWidget {
iconColor: blueColor, iconColor: blueColor,
tapHeaderToExpand: true), tapHeaderToExpand: true),
child: ExpandablePanel( child: ExpandablePanel(
collapsed: Container(),
header: InkWell( header: InkWell(
child: Text( child: Text(
paste.id, paste.id,