ds_lint 0.1.4 copy "ds_lint: ^0.1.4" to clipboard
ds_lint: ^0.1.4 copied to clipboard

Extension of linter rules for altush Flutter projects. Implements imports check, easy_localization, etc

example/lib/main.dart

import 'package:flutter/material.dart';

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

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

  @override
  State<MyApp> createState() => _MyAppState();
}

extension PseudoEasyLocalization on String {
  String tr(BuildContext context) => this;
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    final s = 'Plugin example app';
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: Text(s.tr(context)),
        ),
        body: const Center(
          child: Text('Running'),
        ),
      ),
    );
  }
}
1
likes
140
points
164
downloads

Publisher

verified publisheraltush.pro

Weekly Downloads

Extension of linter rules for altush Flutter projects. Implements imports check, easy_localization, etc

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

analyzer, custom_lint_builder, custom_lint_core, meta, yaml

More

Packages that depend on ds_lint