mirror of
https://github.com/go-vikunja/app
synced 2024-06-05 20:19:51 +00:00
added sharing test to list edit
This commit is contained in:
parent
3a996f91f0
commit
d5a45be90a
|
@ -1,6 +1,7 @@
|
||||||
import 'dart:ffi';
|
import 'dart:ffi';
|
||||||
import 'dart:developer';
|
import 'dart:developer';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:flutter_typeahead/flutter_typeahead.dart';
|
||||||
import 'package:vikunja_app/global.dart';
|
import 'package:vikunja_app/global.dart';
|
||||||
import 'package:vikunja_app/models/list.dart';
|
import 'package:vikunja_app/models/list.dart';
|
||||||
import 'package:vikunja_app/theme/button.dart';
|
import 'package:vikunja_app/theme/button.dart';
|
||||||
|
@ -44,6 +45,7 @@ class _ListEditPageState extends State<ListEditPage> {
|
||||||
child: Form(
|
child: Form(
|
||||||
key: _formKey,
|
key: _formKey,
|
||||||
child: ListView(
|
child: ListView(
|
||||||
|
reverse: true,
|
||||||
padding: const EdgeInsets.all(16.0),
|
padding: const EdgeInsets.all(16.0),
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
Padding(
|
Padding(
|
||||||
|
@ -114,7 +116,29 @@ class _ListEditPageState extends State<ListEditPage> {
|
||||||
? CircularProgressIndicator()
|
? CircularProgressIndicator()
|
||||||
: VikunjaButtonText('Save'),
|
: VikunjaButtonText('Save'),
|
||||||
))),
|
))),
|
||||||
]),
|
/*ExpansionTile(
|
||||||
|
title: Text("Sharing"),
|
||||||
|
children: [
|
||||||
|
TypeAheadFormField(
|
||||||
|
onSuggestionSelected: (suggestion) {},
|
||||||
|
itemBuilder: (BuildContext context, Object? itemData) {
|
||||||
|
return Card(
|
||||||
|
child: Container(
|
||||||
|
padding: EdgeInsets.all(10),
|
||||||
|
child: Text(itemData.toString())),
|
||||||
|
);},
|
||||||
|
suggestionsCallback: (String pattern) {
|
||||||
|
List<String> matches = <String>[];
|
||||||
|
matches.addAll(["test", "test2", "test3"]);
|
||||||
|
matches.retainWhere((s){
|
||||||
|
return s.toLowerCase().contains(pattern.toLowerCase());
|
||||||
|
});
|
||||||
|
return matches;
|
||||||
|
},)
|
||||||
|
],
|
||||||
|
)*/
|
||||||
|
]
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
@ -111,9 +111,7 @@ class _LoginPageState extends State<LoginPage> {
|
||||||
},
|
},
|
||||||
itemBuilder: (BuildContext context, Object? itemData) {
|
itemBuilder: (BuildContext context, Object? itemData) {
|
||||||
return Card(
|
return Card(
|
||||||
|
|
||||||
child: Container(
|
child: Container(
|
||||||
|
|
||||||
padding: EdgeInsets.all(10),
|
padding: EdgeInsets.all(10),
|
||||||
child:
|
child:
|
||||||
Row(
|
Row(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user