• This project
    • Loading...
  • Sign in

OnePoem / OnePoem-App

Go to a project
Toggle navigation Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Snippets
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • OnePoem-App
  • lib
  • extension
  • widget_ext.dart
  • ChadCSong's avatar
    去除无用引用 · 7e357304
    7e357304 Browse Files
    ChadCSong authored 2022-11-01 00:34:09 +0800
widget_ext.dart 222 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11
import 'package:flutter/material.dart';

extension WidgetExt on Widget {
  Expanded expanded({int flex = 1}) {
    return Expanded(flex: flex, child: this);
  }

  SafeArea safe() {
    return SafeArea(child: this);
  }
}