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

Breaking changes, new features, fixes, performace improvements #26

Merged
merged 7 commits into from
Aug 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<p align="center">
<img src="https://raw.githubusercontent.com/adrianflutur/webviewx/master/doc/images/webviewx_logo.png" height="450" alt="webviewx" />
<img src="https://raw.githubusercontent.com/adrianflutur/webviewx/master/doc/images/webviewx_logo.png" height="400" alt="webviewx" />
</p>

[![pub package](https://shields.io/pub/v/webviewx.svg?style=flat-square&color=blue)](https://pub.dev/packages/webviewx)
Expand Down
8 changes: 7 additions & 1 deletion analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
include: package:pedantic/analysis_options.yaml
include: package:lint/analysis_options_package.yaml
linter:
rules:
# Disable
avoid_positional_boolean_parameters: false
unsafe_html: false
avoid_web_libraries_in_flutter: false
15 changes: 6 additions & 9 deletions example/lib/helpers.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:webviewx/webviewx.dart';

Expand All @@ -17,7 +16,7 @@ void showAlertDialog(String content, BuildContext context) {
actions: [
TextButton(
onPressed: Navigator.of(context).pop,
child: Text('Close'),
child: const Text('Close'),
),
],
),
Expand All @@ -40,13 +39,11 @@ Widget createButton({
VoidCallback? onTap,
required String text,
}) {
return Container(
child: ElevatedButton(
onPressed: onTap,
style: ElevatedButton.styleFrom(
padding: const EdgeInsets.symmetric(horizontal: 5.0, vertical: 15.0),
),
child: Text(text),
return ElevatedButton(
onPressed: onTap,
style: ElevatedButton.styleFrom(
padding: const EdgeInsets.symmetric(horizontal: 16.0, vertical: 16.0),
),
child: Text(text),
);
}
6 changes: 4 additions & 2 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,20 @@ import 'package:flutter/material.dart';
import 'webview_page.dart';

void main() {
runApp(MyApp());
runApp(const MyApp());
}

class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);

@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'WebViewX Example App',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: WebViewXPage(),
home: const WebViewXPage(),
);
}
}
Loading