This commit is contained in:
sanfan.hx
2019-02-01 12:49:12 +08:00
parent f55a285cb5
commit 54c884cbd8
5 changed files with 136 additions and 10 deletions

View File

@ -7,15 +7,22 @@
* tartget: xxx
*/
import 'package:flutter/material.dart';
class Demo extends StatefulWidget {
_Demo createState() => _Demo();
enum DateType {
Int,
Double,
Bool,
String,
Dynamic
}
class _Demo extends State<Demo> {
class spKey {
String name;
DateType type;
Widget build(BuildContext context) {
return Container();
}
spKey({this.name, this.type});
}
class sharedPreferencesKeys {
static spKey loginWelcome = spKey(name: 'loginWelcone', type: DateType.Bool);
}