dart_extensions 0.3.2 copy "dart_extensions: ^0.3.2" to clipboard
dart_extensions: ^0.3.2 copied to clipboard

outdated

Set of method-extensions for dart that makes using framework in a much easier and clean way also adds additional functionality.

example/lib/main.dart

/*
 * Copyright 2020 Idan Ayalon. All rights reserved.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * http://www.apache.org/licenses/LICENSE-2.0
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
//
//import 'package:dart_extensions/dart_extensions.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: 'Flutter Demo',
//      theme: ThemeData(primarySwatch: Colors.blue),
//      home: Padding(
//        padding: const EdgeInsets.all(8.0),
//        child: Home(),
//      ),
//    );
//  }
//}
//
//class Routes {
//  static final home = "/home";
//}
//
//class Home extends StatefulWidget {
//  @override
//  _HomeState createState() => _HomeState();
//}
//
//class _HomeState extends State<Home> {
//
//  navigation() {
//    navigateTo(route: MaterialPageRoute(builder: (c) => Login()));
//    navigateByRouteName(Routes.home, );
//    navigateBack();
//  }
//
//  @override
//  Widget build(BuildContext context) {
//
//    /// For example purpose only
//
//    return Scaffold(
//      body: Container(
//        child: Stack(
//          children: <Widget>[
//            Container(
//              height: 100,
//              width: 100,
//            )   .withRoundCorners(backgroundColor: Colors.grey)
//                .withShadow()
//                .alignAtCenter()
//                .toCenter()
//                .paddingOnly(left: 10)
//                .paddingAll(20)
//                .onTap(() => print('tap'))
//                .onLongPress(() => print('long press'))
//          ],
//        ),
//      ),
//    );
//  }
//}
//
//class Login extends StatelessWidget {
//  @override
//  Widget build(BuildContext context) {
//    return Container();
//  }
//}
88
likes
0
pub points
90%
popularity

Publisher

unverified uploader

Set of method-extensions for dart that makes using framework in a much easier and clean way also adds additional functionality.

Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (license)

Dependencies

flutter, http, intl, quiver

More

Packages that depend on dart_extensions