in_app_webview 0.0.2 copy "in_app_webview: ^0.0.2" to clipboard
in_app_webview: ^0.0.2 copied to clipboard

Launch your URL inside a webview.

in_app_webview #

Simple in app browser for you application.

Getting Started #

Usage #

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  String _platformVersion = 'Unknown';

  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: InAppWebView(
        "https://www.google.com/",
        mDirection: TextDirection.ltr,
        appBarBGColor: Color(0xFF262626),
        bottomNavColor: Color(0xFF262626),
        showAppTitle: true,
        backIcon: Icon(Icons.arrow_back_ios, color: Colors.white),
        nextIcon: Icon(Icons.arrow_forward_ios, color: Colors.white),
        closeIcon: Icon(Icons.close, color: Colors.white),
        shareIcon: Icon(Icons.share, color: Colors.white),
        refreshIcon: Icon(Icons.refresh, color: Colors.white),
        actionWidget: [],
        actionsIconTheme: IconThemeData(),
        centerTitle: true,
        titleTextStyle: TextStyle(),
        toolbarTextStyle: TextStyle(),
        toolbarHeight: 56,
      ),
    );
  }
}

InAppWebView parameters #

[mUrl] which is loaded and displayed by web view and it will be shown on the appbar and shared by share button.

this.mUrl Key key To change the direction of web view this.mDirection = TextDirection.ltr Bottom Sheet Icons

this.backIcon
this.nextIcon
this.shareIcon
this.refreshIcon

Bottom Sheet Size this.btmSheetSize = 56 Bottom Sheet Shape this.btmSheetShape

AppBar Parameters

this.closeIcon
this.appBarBGColor = Colors.white
this.bottomNavColor = Colors.white

If widget.titleWidget == null and showAppTitle == true then the current URL will show on the appbar

this.showAppTitle = false
this.actionWidget
this.centerTitle = false
this.elevationVal = 0
this.appBarFGColor
this.shadowColor
this.iconTheme
this.actionsIconTheme
this.primary = true
this.excludeHeaderSemantics = false
this.titleSpacing
this.toolbarHeight
this.leadingWidth
this.toolbarTextStyle
this.titleTextStyle

Meta #

Abbas Jafari - @Abbas Jafari

Git repository of this package git_repository

Contributing #

  1. Fork it (https://github.com/AbbasJafariTrax/in-app-webview/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request
15
likes
0
pub points
84%
popularity

Publisher

unverified uploader

Launch your URL inside a webview.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, flutter_webview_plugin, share_plus

More

Packages that depend on in_app_webview