s_webview 0.0.1 copy "s_webview: ^0.0.1" to clipboard
s_webview: ^0.0.1 copied to clipboard

A Flutter package that provides an enhanced WebView widget with smooth animations and loading states

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:s_webview/s_webview.dart';

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

class MyApp extends StatelessWidget {
  const MyApp({super.key});

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

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key});

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('SWebView Example'),
      ),
      body: const Center(
        child: SWebView(url: 'https://flutter.dev'),
      ),
    );
  }
}
1
likes
160
points
475
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package that provides an enhanced WebView widget with smooth animations and loading states

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

atomic_webview, flutter, flutter_animate, ticker_free_circular_progress_indicator

More

Packages that depend on s_webview