Code Monkey home page Code Monkey logo

freetime's Introduction

lingdong

A new Flutter project.

Getting Started

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

<<<<<<< HEAD

d0391924a1a59989c5580e03f69ff594132019a5

For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

column 报错解决 SingleChildScrollView 包裹column

flutter 弹窗 ScaffoldMessenger.of(context).showSnackBar( const SnackBar( content: Text("请保存后点击 "i" 预览 "), duration: Duration(seconds: 1), ), );

how use sp?
import 'package:shared_preferences/shared_preferences.dart';

void main() { //获取共享首选项实例。

final SharedPreferences prefs = await SharedPreferences.getInstance();

//存储用户名。

prefs.setString('name', 'John Doe');

//检索用户名。

final String name = prefs.getString('name');

//打印用户名。 print('The user's name is $name'); }

简单捕获异常demo setState(() { try { // 可能会引发异常的代码 durations = int.parse(_textEditingController.text); throw Exception(durations); } catch (e) { // 处理异常的代码 // durations= 10;
print('捕获到异常:$e'); } print('保存或更新值: $durations'); });

--带 _ 符号的 不可跨越文件夹使用

// Flutter 2.0 版本中已经将 RaisedButton 替换为 ElevatedButton。

freetime's People

Contributors

wscoding avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.