mirror of
https://github.com/alibaba/flutter-go.git
synced 2025-08-06 09:01:00 +08:00
add sp
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user