apn_widgets 3.0.1 copy "apn_widgets: ^3.0.1" to clipboard
apn_widgets: ^3.0.1 copied to clipboard

A carefully curated collection of widget made by and used within Appnormal projects

example/lib/main.dart

import 'package:example/features/animated_popup_page.dart';
import 'package:example/features/buttons_page.dart';
import 'package:example/features/dialogs_page.dart';
import 'package:example/features/lists_page.dart';
import 'package:example/features/pin_page.dart';
import 'package:example/features/placeholders_page.dart';
import 'package:example/features/search_page.dart';
import 'package:flutter/material.dart';

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

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'APN Widgets',
      theme: ThemeData(
        primarySwatch: Colors.blue,
        visualDensity: VisualDensity.adaptivePlatformDensity,
      ),
      home: MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key? key, required this.title}) : super(key: key);

  final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            TextButton(
              child: Text('Buttons'),
              onPressed: () => Navigator.push(context, MaterialPageRoute(builder: (context) => ButtonsPage())),
            ),
            TextButton(
              child: Text('Lists'),
              onPressed: () => Navigator.push(context, MaterialPageRoute(builder: (context) => ListsPage())),
            ),
            TextButton(
              child: Text('Dialogs'),
              onPressed: () => Navigator.push(context, MaterialPageRoute(builder: (context) => DialogsPage())),
            ),
            TextButton(
              child: Text('Placeholders & Loaders'),
              onPressed: () => Navigator.push(context, MaterialPageRoute(builder: (context) => PlaceholdersPage())),
            ),
            TextButton(
              child: Text('Search'),
              onPressed: () => Navigator.push(context, MaterialPageRoute(builder: (context) => SearchPage())),
            ),
            TextButton(
              child: Text('Pin'),
              onPressed: () => Navigator.push(context, MaterialPageRoute(builder: (context) => PinPage())),
            ),
            TextButton(
              child: Text('Animated popup'),
              onPressed: () => Navigator.push(context, MaterialPageRoute(builder: (context) => AnimatedPopupPage())),
            )
          ],
        ),
      ),
    );
  }
}
1
likes
120
pub points
43%
popularity

Publisher

verified publisherappnormal.com

A carefully curated collection of widget made by and used within Appnormal projects

Homepage

Documentation

API reference

License

MIT (LICENSE)

Dependencies

app_settings, cupertino_icons, flare_flutter, flutter, image_picker, intl

More

Packages that depend on apn_widgets